pub enum PrimitiveInfo {
    Extern {
        path: PathBuf,
        primitives: LinkedHashMap<Id, Primitive, RandomState>,
        is_source: bool,
    },
    Inline {
        primitive: Primitive,
        is_source: bool,
    },
}
Expand description

Tracks the information for Primitives defined in the program.

Variants

Extern

Fields

path: PathBuf
primitives: LinkedHashMap<Id, Primitive, RandomState>
is_source: bool

An extern block that defines multiple primitives

Inline

Fields

primitive: Primitive
is_source: bool

An inline primitive

Implementations

Check if this primitive is a source primitive

Mark this primitive as a source primitive

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.