pub struct ParserError {
pub kind: ParserErrorKind,
pub line_index: usize,
pub message: Option<Cow<'static, str>>,
}Fields
kind: ParserErrorKindline_index: usizemessage: Option<Cow<'static, str>>Implementations
pub fn with_message<M: Into<Cow<'static, str>>, O: Into<Option<M>>>(
kind: ParserErrorKind,
line_index: usize,
message: O
) -> Self
Trait Implementations
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
Blanket Implementations
Mutably borrows from an owned value. Read more