Type Alias deno_core::ModuleCode

source ·
pub type ModuleCode = FastString;

Aliased Type§

enum ModuleCode {
    Static(&'static str),
    StaticAscii(&'static str),
    Owned(Box<str>),
    Arc(Arc<str>),
}

Variants§

§

Static(&'static str)

Created from static data.

§

StaticAscii(&'static str)

Created from static data, known to contain only ASCII chars.

§

Owned(Box<str>)

An owned chunk of data. Note that we use Box rather than Vec to avoid the storage overhead.

§

Arc(Arc<str>)