Enum mz_walkabout::ir::Type
source · 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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request