pub struct PatOp(/* private fields */);Implementations§
Source§impl PatOp
impl PatOp
pub fn amp(&self) -> Option<SyntaxToken>
pub fn bang(&self) -> Option<SyntaxToken>
pub fn dollar(&self) -> Option<SyntaxToken>
pub fn pat_atom(&self) -> PatAtom
pub fn repeat(&self) -> Option<Repeat>
pub fn tilde(&self) -> Option<SyntaxToken>
pub fn trivia(&self) -> Option<Trivia>
Trait Implementations§
Source§impl AstNode for PatOp
impl AstNode for PatOp
type Language = Lang
fn syntax(&self) -> &SyntaxNode<Self::Language>
fn can_cast(kind: <Self::Language as Language>::Kind) -> bool
fn cast(node: SyntaxNode<Self::Language>) -> Option<Self>
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
impl Eq for PatOp
impl StructuralPartialEq for PatOp
Auto Trait Implementations§
impl Freeze for PatOp
impl !RefUnwindSafe for PatOp
impl !Send for PatOp
impl !Sync for PatOp
impl Unpin for PatOp
impl !UnwindSafe for PatOp
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