pub enum TypeVariant {
Builtin(BuiltinType),
Record(Record),
Typedef(Box<Type>),
Array(Array),
Opaque(OpaqueTypeLayout),
Name(String, Span),
Enum(Vec<Expr>),
}Expand description
A type without its annotations.
Variants§
Builtin(BuiltinType)
Record(Record)
Typedef(Box<Type>)
Array(Array)
Opaque(OpaqueTypeLayout)
Name(String, Span)
Enum(Vec<Expr>)
Trait Implementations§
Source§impl Clone for TypeVariant
impl Clone for TypeVariant
Source§fn clone(&self) -> TypeVariant
fn clone(&self) -> TypeVariant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeVariant
impl Debug for TypeVariant
Source§impl PartialEq for TypeVariant
impl PartialEq for TypeVariant
impl Eq for TypeVariant
impl StructuralPartialEq for TypeVariant
Auto Trait Implementations§
impl Freeze for TypeVariant
impl RefUnwindSafe for TypeVariant
impl Send for TypeVariant
impl Sync for TypeVariant
impl Unpin for TypeVariant
impl UnwindSafe for TypeVariant
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