pub struct FieldDef { /* private fields */ }Expand description
A FieldDef node (family.ungram rule FieldDef).
Implementations§
Source§impl FieldDef
impl FieldDef
pub fn name(&self) -> Option<Name>
pub fn field_type(&self) -> Option<FieldType>
pub fn init_value(&self) -> Option<InitValue>
pub fn colon_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for FieldDef
impl AstNode for FieldDef
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 FieldDef
impl StructuralPartialEq for FieldDef
Auto Trait Implementations§
impl !RefUnwindSafe for FieldDef
impl !Send for FieldDef
impl !Sync for FieldDef
impl !UnwindSafe for FieldDef
impl Freeze for FieldDef
impl Unpin for FieldDef
impl UnsafeUnpin for FieldDef
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