pub trait GetContentSourceContent:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn get(
self: Vc<Self>,
path: RcStr,
data: ContentSourceData,
) -> Vc<ContentSourceContent>
where Self: Sized;
// Provided method
fn vary(self: Vc<Self>) -> Vc<ContentSourceDataVary>
where Self: Sized { ... }
}
Expand description
A functor to receive the actual content of a content source result.
Required Methods§
Sourcefn get(
self: Vc<Self>,
path: RcStr,
data: ContentSourceData,
) -> Vc<ContentSourceContent>where
Self: Sized,
fn get(
self: Vc<Self>,
path: RcStr,
data: ContentSourceData,
) -> Vc<ContentSourceContent>where
Self: Sized,
Get the content
Provided Methods§
Trait Implementations§
Source§impl VcValueTrait for Box<dyn GetContentSourceContent>
impl VcValueTrait for Box<dyn GetContentSourceContent>
type ValueTrait = dyn GetContentSourceContent
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.