Skip to main content

ProcessCss

Trait ProcessCss 

Source
pub trait ProcessCss:
    ParseCss
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required methods
    fn get_css_with_placeholder(self: Vc<Self>) -> Vc<CssWithPlaceholderResult>
       where Self: Sized;
    fn finalize_css(
        self: Vc<Self>,
        chunking_context: Vc<Box<dyn ChunkingContext>>,
        minify_type: MinifyType,
    ) -> Vc<FinalCssResult>
       where Self: Sized;
}

Required Methods§

Source

fn get_css_with_placeholder(self: Vc<Self>) -> Vc<CssWithPlaceholderResult>
where Self: Sized,

Source

fn finalize_css( self: Vc<Self>, chunking_context: Vc<Box<dyn ChunkingContext>>, minify_type: MinifyType, ) -> Vc<FinalCssResult>
where Self: Sized,

Trait Implementations§

Source§

impl Dynamic<Box<dyn ParseCss>> for Box<dyn ProcessCss>

Source§

impl Dynamic<Box<dyn ProcessCss>> for Box<dyn ProcessCss>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ProcessCss>

Available on debug-assertions enabled only.
Source§

impl TraitVtablePrototype for Box<dyn ProcessCss>

Source§

const LEN: usize = 2usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl Upcast<Box<dyn ParseCss>> for Box<dyn ProcessCss>

Source§

impl Upcast<Box<dyn ProcessCss>> for CssModule

Source§

impl Upcast<Box<dyn ProcessCss>> for Box<dyn ProcessCss>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn ProcessCss>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ParseCss>> for Box<dyn ProcessCss>

Source§

impl UpcastStrict<Box<dyn ProcessCss>> for CssModule

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ProcessCss>

Available on debug-assertions enabled only.
Source§

impl VcValueTrait for Box<dyn ProcessCss>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
Source§

type ValueTrait = dyn ProcessCss

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ProcessCss for CssModule

Source§

impl<T> ProcessCss for T
where T: Dynamic<Box<dyn ProcessCss>> + ParseCss + Send + Sync + NonLocalValue + ValueDebug,