pub enum Type {
Primitive,
Abstract(String),
Option(Box<Type>),
Vec(Box<Type>),
Box(Box<Type>),
Local(String),
Map {
key: Box<Type>,
value: Box<Type>,
},
}Expand description
The type of a Field.
Variants§
Primitive
A primitive Rust type.
Primitive types do not need to be visited.
Abstract(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)
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.
Map
A BTreeMap type
Each value will need to be visited.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more