Trait GetContentSource

Source
pub trait GetContentSource:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn content_source(self: Vc<Self>) -> Vc<Box<dyn ContentSource>>
       where Self: Sized;
}
Expand description

A functor to get a ContentSource. Will be invoked when needed when using LazyInstantiatedContentSource.

Required Methods§

Source

fn content_source(self: Vc<Self>) -> Vc<Box<dyn ContentSource>>
where Self: Sized,

Returns the ContentSource

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn GetContentSource>

Source§

type ValueTrait = dyn GetContentSource

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 GetContentSource>> for Box<dyn GetContentSource>

Source§

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

Source§

impl Upcast<Box<dyn GetContentSource>> for Box<dyn GetContentSource>

Source§

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

Implementors§