pub struct Trivia(/* private fields */);Expand description
_ = whitespace *(comment whitespace)Implementations§
Source§impl Trivia
impl Trivia
pub fn comment_tokens(&self) -> impl Iterator<Item = SyntaxToken>
pub fn whitespace_tokens(&self) -> impl Iterator<Item = SyntaxToken>
Trait Implementations§
Source§impl AstNode for Trivia
impl AstNode for Trivia
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 Trivia
impl StructuralPartialEq for Trivia
Auto Trait Implementations§
impl !RefUnwindSafe for Trivia
impl !Send for Trivia
impl !Sync for Trivia
impl !UnwindSafe for Trivia
impl Freeze for Trivia
impl Unpin for Trivia
impl UnsafeUnpin for Trivia
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