pub trait ScannerError: Sized + Error {
// Required methods
fn custom(msg: &'static str) -> Self;
fn end_of_entry() -> Self;
fn short_buf() -> Self;
fn trailing_tokens() -> Self;
}
Expand description
A type providing error information for a scanner.
Required Methods§
Sourcefn end_of_entry() -> Self
fn end_of_entry() -> Self
Creates an error when more tokens were expected in the entry.
Sourcefn trailing_tokens() -> Self
fn trailing_tokens() -> Self
Creates an error when there are trailing tokens.
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.