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§

Implementors§