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§
impl Dynamic<Box<dyn GetContentSource>> for Box<dyn GetContentSource>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn GetContentSource>
Available on debug-assertions enabled only.
Source§impl TraitVtablePrototype for Box<dyn GetContentSource>
impl TraitVtablePrototype for Box<dyn GetContentSource>
impl Upcast<Box<dyn GetContentSource>> for Box<dyn GetContentSource>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn GetContentSource>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn GetContentSource>
Available on debug-assertions enabled only.
Source§impl VcValueTrait for Box<dyn GetContentSource>
impl VcValueTrait for Box<dyn GetContentSource>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".