pub trait Source:
Asset
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn ident(self: Vc<Self>) -> Vc<AssetIdent>
where Self: Sized;
}
Expand description
(Unparsed) Source Code. Source Code is processed into [Module]s by the [AssetContext]. All Sources have content and an identifier.
Required Methods§
Trait Implementations§
Source§impl VcValueTrait for Box<dyn Source>
impl VcValueTrait for Box<dyn Source>
type ValueTrait = dyn Source
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.