pub struct CellTokenGroup { /* private fields */ }Expand description
A delimiter group whose contents have passed through cell framing.
Implementations§
Source§impl CellTokenGroup
impl CellTokenGroup
Sourcepub fn delim_kind(&self) -> DelimiterKind
pub fn delim_kind(&self) -> DelimiterKind
Returns the group’s delimiter family.
Sourcepub fn stream(&self) -> &CellTokenStream
pub fn stream(&self) -> &CellTokenStream
Returns the recursively framed contents.
Sourcepub fn into_stream(self) -> CellTokenStream
pub fn into_stream(self) -> CellTokenStream
Consumes the group and returns its recursively framed contents.
Trait Implementations§
Source§impl Clone for CellTokenGroup
impl Clone for CellTokenGroup
Source§impl Debug for CellTokenGroup
impl Debug for CellTokenGroup
impl Eq for CellTokenGroup
Source§impl PartialEq for CellTokenGroup
impl PartialEq for CellTokenGroup
Source§impl Spanned for CellTokenGroup
impl Spanned for CellTokenGroup
impl StructuralPartialEq for CellTokenGroup
Source§impl Terminal for CellTokenGroup
impl Terminal for CellTokenGroup
Source§fn leading_trivia(&self) -> &LeadingTrivia
fn leading_trivia(&self) -> &LeadingTrivia
Borrows the comments preceding this terminal.
Source§fn leading_trivia_mut(&mut self) -> &mut LeadingTrivia
fn leading_trivia_mut(&mut self) -> &mut LeadingTrivia
Mutably borrows the comments preceding this terminal.
Source§fn trailing_trivia(&self) -> &TrailingTrivia
fn trailing_trivia(&self) -> &TrailingTrivia
Borrows the comments following this terminal.
Source§fn trailing_trivia_mut(&mut self) -> &mut TrailingTrivia
fn trailing_trivia_mut(&mut self) -> &mut TrailingTrivia
Mutably borrows the comments following this terminal.
Source§fn set_leading_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
fn set_leading_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
Replaces the comments preceding this terminal.
Source§fn set_trailing_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
fn set_trailing_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
Replaces the comments and layout characters following this terminal.
Auto Trait Implementations§
impl Freeze for CellTokenGroup
impl RefUnwindSafe for CellTokenGroup
impl Send for CellTokenGroup
impl Sync for CellTokenGroup
impl Unpin for CellTokenGroup
impl UnsafeUnpin for CellTokenGroup
impl UnwindSafe for CellTokenGroup
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