pub struct BuiltinDispatchTables {
    pub nil: Gc<DispatchTable>,
    pub boolean: Gc<DispatchTable>,
    pub number: Gc<DispatchTable>,
    pub string: Gc<DispatchTable>,
    pub function: Gc<DispatchTable>,
    pub list: Gc<DispatchTable>,
    pub dict: Gc<DispatchTable>,
}
Expand description

Dispatch tables for instances of builtin types. These should be constructed by the standard library.

Fields§

§nil: Gc<DispatchTable>§boolean: Gc<DispatchTable>§number: Gc<DispatchTable>§string: Gc<DispatchTable>§function: Gc<DispatchTable>§list: Gc<DispatchTable>§dict: Gc<DispatchTable>

Implementations§

Default dispatch tables for built-in types are empty and do not implement any methods.

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.