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§
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
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.