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