pub struct Repeat(/* private fields */);Implementations§
Source§impl Repeat
impl Repeat
pub fn number(&self) -> Option<SyntaxToken>
pub fn plus(&self) -> Option<SyntaxToken>
pub fn repeat_rest(&self) -> Option<RepeatRest>
Trait Implementations§
Source§impl AstNode for Repeat
impl AstNode for Repeat
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 Repeat
impl StructuralPartialEq for Repeat
Auto Trait Implementations§
impl Freeze for Repeat
impl !RefUnwindSafe for Repeat
impl !Send for Repeat
impl !Sync for Repeat
impl Unpin for Repeat
impl !UnwindSafe for Repeat
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