Trait StateExt

Source
pub trait StateExt {
    // Required methods
    fn peek_nth(&mut self, len: usize) -> Span;
    fn nth(&mut self, len: usize) -> Span;
    fn next(&mut self) -> Span;
    fn peek(&mut self, len: usize) -> Span;
    fn chomp(&mut self, len: usize) -> Span;
    fn chomp_while(&mut self, f: impl Fn(&str) -> bool) -> Span;
}

Required Methods§

Source

fn peek_nth(&mut self, len: usize) -> Span

Source

fn nth(&mut self, len: usize) -> Span

Source

fn next(&mut self) -> Span

Source

fn peek(&mut self, len: usize) -> Span

Source

fn chomp(&mut self, len: usize) -> Span

Source

fn chomp_while(&mut self, f: impl Fn(&str) -> bool) -> Span

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§