pub trait MergeableVersionedContent:
VersionedContent
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn get_merger(self: Vc<Self>) -> Vc<Box<dyn VersionedContentMerger>>
where Self: Sized;
}
Expand description
This trait allows multiple VersionedContent
to declare which
VersionedContentMerger
implementation should be used for merging.
MergeableVersionedContent
which return the same merger will be merged
together.
Required Methods§
fn get_merger(self: Vc<Self>) -> Vc<Box<dyn VersionedContentMerger>>where
Self: Sized,
Trait Implementations§
Source§impl VcValueTrait for Box<dyn MergeableVersionedContent>
impl VcValueTrait for Box<dyn MergeableVersionedContent>
type ValueTrait = dyn MergeableVersionedContent
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.