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>)
An Option
type..
The value inside the option will need to be visited if the option is
Some
.
Vec(Box<Type>)
A Vec
type.
Each value in the vector will need to be visited.
Box(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
Auto Trait Implementations
impl RefUnwindSafe for Type
impl UnwindSafe for Type
Blanket Implementations
Mutably borrows from an owned value. Read more
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