StyleModule

Trait StyleModule 

Source
pub trait StyleModule:
    Module
    + Asset
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn style_type(self: Vc<Self>) -> Vc<StyleType>
       where Self: Sized;
}

Required Methods§

Source

fn style_type(self: Vc<Self>) -> Vc<StyleType>
where Self: Sized,

The style type of the module.

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn StyleModule>

Source§

type ValueTrait = dyn StyleModule

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>

Returns the vtable for an implementation of this trait. Panics if ValueTypeId does not implement the trait.
Source§

impl Dynamic<Box<dyn Asset>> for Box<dyn StyleModule>

Source§

impl Dynamic<Box<dyn Module>> for Box<dyn StyleModule>

Source§

impl Dynamic<Box<dyn StyleModule>> for Box<dyn StyleModule>

Source§

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

Source§

impl Upcast<Box<dyn Asset>> for Box<dyn StyleModule>

Source§

impl Upcast<Box<dyn Module>> for Box<dyn StyleModule>

Source§

impl Upcast<Box<dyn StyleModule>> for Box<dyn StyleModule>

Source§

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

Source§

impl UpcastStrict<Box<dyn Asset>> for Box<dyn StyleModule>

Source§

impl UpcastStrict<Box<dyn Module>> for Box<dyn StyleModule>

Source§

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

Implementors§

Source§

impl<T> StyleModule for T
where T: Dynamic<Box<dyn StyleModule>> + Module + Asset + Send + Sync + NonLocalValue + ValueDebug,