pub trait VersionedContent:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn content(self: Vc<Self>) -> Vc<AssetContent>
where Self: Sized;
fn version(self: Vc<Self>) -> Vc<Box<dyn Version>>
where Self: Sized;
// Provided method
fn update(self: Vc<Self>, from: Vc<Box<dyn Version>>) -> Vc<Update>
where Self: Sized { ... }
}Expand description
The content of an Asset alongside its version, returned by Asset::versioned_content.
Required Methods§
Sourcefn content(self: Vc<Self>) -> Vc<AssetContent>where
Self: Sized,
fn content(self: Vc<Self>) -> Vc<AssetContent>where
Self: Sized,
The content of the Asset.
Provided Methods§
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn VersionedContent>
impl TraitVtablePrototype for Box<dyn VersionedContent>
Source§impl VcValueTrait for Box<dyn VersionedContent>
impl VcValueTrait for Box<dyn VersionedContent>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated at program load by
#[ctor::ctor]
functions emitted by each #[turbo_tasks::value_impl] expansion. Read moretype ValueTrait = dyn VersionedContent
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn VersionedContent>
Available on debug-assertions enabled only.
impl Dynamic<Box<dyn VersionedContent>> for Box<dyn VersionedContent>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn VersionedContent>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn VersionedContent>> for Box<dyn VersionedContent>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn VersionedContent>
Available on debug-assertions enabled only.