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§
Sourcefn content_source(self: Vc<Self>) -> Vc<Box<dyn ContentSource>>where
Self: Sized,
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>
impl VcValueTrait for Box<dyn GetContentSource>
type ValueTrait = dyn GetContentSource
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
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.