pub enum Type<'tree> {
Show 17 variants
AbstractType(Box<AbstractType<'tree>>),
ArrayType(Box<ArrayType<'tree>>),
BoundedType(Box<BoundedType<'tree>>),
DynamicType(Box<DynamicType<'tree>>),
FunctionType(Box<FunctionType<'tree>>),
GenericType(Box<GenericType<'tree>>),
MacroInvocation(Box<MacroInvocation<'tree>>),
Metavariable(Box<Metavariable<'tree>>),
NeverType(Box<NeverType<'tree>>),
PointerType(Box<PointerType<'tree>>),
PrimitiveType(Box<PrimitiveType<'tree>>),
ReferenceType(Box<ReferenceType<'tree>>),
RemovedTraitBound(Box<RemovedTraitBound<'tree>>),
ScopedTypeIdentifier(Box<ScopedTypeIdentifier<'tree>>),
TupleType(Box<TupleType<'tree>>),
TypeIdentifier(Box<TypeIdentifier<'tree>>),
UnitType(Box<UnitType<'tree>>),
}Variants§
AbstractType(Box<AbstractType<'tree>>)
ArrayType(Box<ArrayType<'tree>>)
BoundedType(Box<BoundedType<'tree>>)
DynamicType(Box<DynamicType<'tree>>)
FunctionType(Box<FunctionType<'tree>>)
GenericType(Box<GenericType<'tree>>)
MacroInvocation(Box<MacroInvocation<'tree>>)
Metavariable(Box<Metavariable<'tree>>)
NeverType(Box<NeverType<'tree>>)
PointerType(Box<PointerType<'tree>>)
PrimitiveType(Box<PrimitiveType<'tree>>)
ReferenceType(Box<ReferenceType<'tree>>)
RemovedTraitBound(Box<RemovedTraitBound<'tree>>)
ScopedTypeIdentifier(Box<ScopedTypeIdentifier<'tree>>)
TupleType(Box<TupleType<'tree>>)
TypeIdentifier(Box<TypeIdentifier<'tree>>)
UnitType(Box<UnitType<'tree>>)
Trait Implementations§
impl<'tree> Eq for Type<'tree>
impl<'tree> StructuralPartialEq for Type<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for Type<'tree>
impl<'tree> RefUnwindSafe for Type<'tree>
impl<'tree> Send for Type<'tree>
impl<'tree> Sync for Type<'tree>
impl<'tree> Unpin for Type<'tree>
impl<'tree> UnsafeUnpin for Type<'tree>
impl<'tree> UnwindSafe for Type<'tree>
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