Enum walkabout::ir::Type[][src]

pub enum Type {
    Primitive,
    Abstract(String),
    Option(Box<Type>),
    Vec(Box<Type>),
    Box(Box<Type>),
    Local(String),
}
Expand description

The type of a Field.

Variants

Primitive

A primitive Rust type.

Primitive types do not need to be visited.

Abstract(String)

Tuple Fields

0: String

Abstract type.

Abstract types are visited, but their default visit function does nothing.

Option(Box<Type>)

Tuple Fields

0: Box<Type>

An Option type..

The value inside the option will need to be visited if the option is Some.

Vec(Box<Type>)

Tuple Fields

0: Box<Type>

A Vec type.

Each value in the vector will need to be visited.

Box(Box<Type>)

Tuple Fields

0: Box<Type>

A Box type.

The value inside the box will need to be visited.

Local(String)

Tuple Fields

0: String

A type local to the AST.

The value will need to be visited by calling the appropriate Visit or VisitMut trait method on the value.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more