pub enum FieldType {
Path(PathType),
Primitive(PrimitiveType),
Tuple(TupleType),
Array(ArrayType),
Map(MapType),
Optional(OptionalType),
}Expand description
The type of a field, tuple field, or collection element — the
FieldType alternation (typl reference §7, §11–§12).
Variants§
Path(PathType)
Primitive(PrimitiveType)
Tuple(TupleType)
Array(ArrayType)
Map(MapType)
Optional(OptionalType)
Trait Implementations§
Source§impl AstNode for FieldType
impl AstNode for FieldType
Source§fn cast(syntax: SyntaxNode) -> Option<Self>
fn cast(syntax: SyntaxNode) -> Option<Self>
Wraps
syntax if its kind matches this type; None otherwise.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying untyped node.
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl !RefUnwindSafe for FieldType
impl !Send for FieldType
impl !Sync for FieldType
impl !UnwindSafe for FieldType
impl Freeze for FieldType
impl Unpin for FieldType
impl UnsafeUnpin 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