Trait Source

Source
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§

Source

fn ident(self: Vc<Self>) -> Vc<AssetIdent>
where Self: Sized,

The identifier of the Source. It’s expected to be unique and capture all properties of the Source.

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn Source>

Source§

type ValueTrait = dyn Source

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

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.
Source§

impl Dynamic<Box<dyn Asset>> for Box<dyn Source>

Source§

impl Dynamic<Box<dyn Source>> for Box<dyn Source>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn Source>

Source§

impl Upcast<Box<dyn Asset>> for Box<dyn Source>

Source§

impl Upcast<Box<dyn Source>> for Box<dyn Source>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn Source>

Implementors§