Type Alias ScriptId

Source
pub type ScriptId = Cow<'static, str>;
Expand description

A unique identifier for a script, by default corresponds to the path of the asset excluding the asset source.

I.e. an asset with the path path/to/asset.ext will have the script id path/to/asset.ext

Aliased Type§

enum ScriptId {
    Borrowed(&'static str),
    Owned(String),
}

Variants§

§1.0.0

Borrowed(&'static str)

Borrowed data.

§1.0.0

Owned(String)

Owned data.