pub struct StructPatField(/* private fields */);Expand description
A single field in a struct pattern: name or name: pat.
Implementations§
Trait Implementations§
Source§impl AstNode for StructPatField
impl AstNode for StructPatField
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a SyntaxNode with the given kind can be cast to
this AST type.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Attempt to cast a
SyntaxNode into this AST type. Read moreSource§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Return a reference to the underlying
SyntaxNode.Source§impl Clone for StructPatField
impl Clone for StructPatField
Source§fn clone(&self) -> StructPatField
fn clone(&self) -> StructPatField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructPatField
impl Debug for StructPatField
Source§impl Hash for StructPatField
impl Hash for StructPatField
Source§impl PartialEq for StructPatField
impl PartialEq for StructPatField
Source§fn eq(&self, other: &StructPatField) -> bool
fn eq(&self, other: &StructPatField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StructPatField
impl StructuralPartialEq for StructPatField
Auto Trait Implementations§
impl Freeze for StructPatField
impl !RefUnwindSafe for StructPatField
impl !Send for StructPatField
impl !Sync for StructPatField
impl Unpin for StructPatField
impl UnsafeUnpin for StructPatField
impl !UnwindSafe for StructPatField
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