pub struct MatchPattern { /* private fields */ }Trait Implementations§
Source§impl AstNode for MatchPattern
impl AstNode for MatchPattern
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for MatchPattern
impl Clone for MatchPattern
Source§fn clone(&self) -> MatchPattern
fn clone(&self) -> MatchPattern
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 MatchPattern
impl Debug for MatchPattern
Source§impl Display for MatchPattern
impl Display for MatchPattern
impl Eq for MatchPattern
Source§impl Hash for MatchPattern
impl Hash for MatchPattern
Source§impl PartialEq for MatchPattern
impl PartialEq for MatchPattern
impl StructuralPartialEq for MatchPattern
Auto Trait Implementations§
impl !RefUnwindSafe for MatchPattern
impl !Send for MatchPattern
impl !Sync for MatchPattern
impl !UnwindSafe for MatchPattern
impl Freeze for MatchPattern
impl Unpin for MatchPattern
impl UnsafeUnpin for MatchPattern
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