Struct gluon_base::types::TypeCache

source ·
pub struct TypeCache<Id, T> {
Show 13 fields pub kind_cache: KindCache, pub hole: T, pub opaque: T, pub error: T, pub int: T, pub byte: T, pub float: T, pub string: T, pub char: T, pub function_builtin: T, pub array_builtin: T, pub unit: T, pub empty_row: T, /* private fields */
}

Fields

kind_cache: KindCachehole: Topaque: Terror: Tint: Tbyte: Tfloat: Tstring: Tchar: Tfunction_builtin: Tarray_builtin: Tunit: Tempty_row: T

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.