pub struct Builtin {
    pub def: Def,
    pub name: ResolvableName,
    pub ty: Option<Ty>,
}
Expand description

A builtin type, function, or operator.

Fields

def: Def

The definition of this builtin.

name: ResolvableName

The name of this builtin.

ty: Option<Ty>

The type of this builtin.

Implementations

Create a new builtin with a definition and a name.

Create a new builtin operator.

Assign a type to the builtin.

Panics if the builtin already has a type.

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.