pub enum Backing {
Primitive(PrimitiveType),
Unit(UnitExpr),
}Expand description
The backing of a type definition — the Backing alternation
(typl reference §4–§5).
Variants§
Primitive(PrimitiveType)
Unit(UnitExpr)
Trait Implementations§
Source§impl AstNode for Backing
impl AstNode for Backing
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 Backing
impl StructuralPartialEq for Backing
Auto Trait Implementations§
impl !RefUnwindSafe for Backing
impl !Send for Backing
impl !Sync for Backing
impl !UnwindSafe for Backing
impl Freeze for Backing
impl Unpin for Backing
impl UnsafeUnpin for Backing
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