pub struct TextCharStream<'src, I: Iterator<Item = &'src TextChunk>> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'src, I: Iterator<Item = &'src TextChunk> + Clone> CharStream<'src> for TextCharStream<'src, I>
impl<'src, I: Iterator<Item = &'src TextChunk> + Clone> CharStream<'src> for TextCharStream<'src, I>
fn peek(&self) -> Option<char>
fn step(&mut self) -> bool
fn char_idx(&self) -> usize
fn pos(&self) -> Pos
fn current_chunk(&self) -> &'src TextChunk
fn next(&mut self) -> Option<char>
fn next_peek(&mut self) -> Option<char>
fn chunk_state<'slf>(&'slf mut self) -> ChunkState<'slf, 'src, Self>
fn expect_any(&mut self)
fn expect(&mut self, expected: char)
fn read_while(&mut self, pred: impl FnMut(char) -> bool) -> Substr
fn skip_while(&mut self, pred: impl FnMut(char) -> bool) -> usize
Source§impl<'src, I: Clone + Iterator<Item = &'src TextChunk>> Clone for TextCharStream<'src, I>
impl<'src, I: Clone + Iterator<Item = &'src TextChunk>> Clone for TextCharStream<'src, I>
Source§fn clone(&self) -> TextCharStream<'src, I>
fn clone(&self) -> TextCharStream<'src, I>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'src, I> Freeze for TextCharStream<'src, I>where
I: Freeze,
impl<'src, I> RefUnwindSafe for TextCharStream<'src, I>where
I: RefUnwindSafe,
impl<'src, I> Send for TextCharStream<'src, I>where
I: Send,
impl<'src, I> Sync for TextCharStream<'src, I>where
I: Sync,
impl<'src, I> Unpin for TextCharStream<'src, I>where
I: Unpin,
impl<'src, I> UnsafeUnpin for TextCharStream<'src, I>where
I: UnsafeUnpin,
impl<'src, I> UnwindSafe for TextCharStream<'src, I>where
I: UnwindSafe,
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