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.
Object Safety§
This trait is not object safe.