pub struct Bundler<T: Grinder> { /* private fields */ }Expand description
A grinder that bundles up categorized characters into groups and converts spaces and comments into single tokens, dropping any information about their content. String and bit string literals are formed here as well.
Implementations§
Trait Implementations§
Source§impl<T> Grinder for Bundler<T>
impl<T> Grinder for Bundler<T>
type Item = Option<Spanned<Bundle>>
type Error = DiagBuilder2
fn emit(&mut self, err: Self::Error)
fn next(&mut self) -> Self::Item
fn vent<F, E>(self, f: F) -> Vent<Self, F, E>
fn unwrap(self) -> Unwrap<Self>where
Self: Sized,
fn map_err<F, E>(self, f: F) -> MapErrGrinder<Self, F, E>
fn peekable(self) -> Peekable<Self>where
Self: Sized,
fn lookaheadable(self) -> Lookahead<Self>where
Self: Sized,
fn filter<F>(self, f: F) -> Filter<Self, F>
Auto Trait Implementations§
impl<T> Freeze for Bundler<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bundler<T>
impl<T> Send for Bundler<T>
impl<T> Sync for Bundler<T>
impl<T> Unpin for Bundler<T>
impl<T> UnwindSafe for Bundler<T>
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