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.
Required Methods§
Provided Methods§
Trait Implementations§
Source§impl VcValueTrait for Box<dyn VersionedContent>
impl VcValueTrait for Box<dyn VersionedContent>
type ValueTrait = dyn VersionedContent
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.