pub trait Version:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn id(self: Vc<Self>) -> Vc<RcStr>
where Self: Sized;
}Expand description
Describes the current version of an object, and how to update them from an earlier version.
Important: Implementations must not contain instances of [Vc]! This should describe a
specific version, and the value of a [Vc] can change due to invalidations or cache eviction.
Required Methods§
Trait Implementations§
Source§impl VcValueTrait for Box<dyn Version>
impl VcValueTrait for Box<dyn Version>
type ValueTrait = dyn Version
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.