pub struct PatChoice(/* private fields */);Implementations§
Source§impl PatChoice
impl PatChoice
pub fn pat_expect(&self) -> Option<PatExpect>
pub fn pat_lists(&self) -> AstChildren<PatList>
pub fn slash_tokens(&self) -> impl Iterator<Item = SyntaxToken>
pub fn trivias(&self) -> AstChildren<Trivia>
Trait Implementations§
Source§impl AstNode for PatChoice
impl AstNode for PatChoice
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 PatChoice
impl StructuralPartialEq for PatChoice
Auto Trait Implementations§
impl Freeze for PatChoice
impl !RefUnwindSafe for PatChoice
impl !Send for PatChoice
impl !Sync for PatChoice
impl Unpin for PatChoice
impl !UnwindSafe for PatChoice
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