pub enum FieldType {
Primitive(Symbol),
Named(Symbol),
Generic {
base: Symbol,
params: Vec<FieldType>,
},
TypeParam(Symbol),
}Expand description
Type reference for struct fields (avoids circular deps with ast::TypeExpr)
Variants§
Primitive(Symbol)
Primitive type name (Int, Nat, Text, Bool, etc.)
Named(Symbol)
User-defined type name
Generic
Generic type with parameters (List of Int, Seq of Text)
TypeParam(Symbol)
Phase 34: Type parameter reference (T, U, etc.)
Trait Implementations§
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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