ParseErrorInfo

Trait ParseErrorInfo 

Source
pub trait ParseErrorInfo {
    // Required methods
    fn kind(&self) -> ParseErrorKind;
    fn origin(&self) -> ParseErrorOrigin;
    fn offset(&self) -> usize;
}
Expand description

The trait implementing a fuzzy hash parse error.

Required Methods§

Source

fn kind(&self) -> ParseErrorKind

Returns the cause of the error.

Source

fn origin(&self) -> ParseErrorOrigin

Returns the part which (possibly) caused the error.

Source

fn offset(&self) -> usize

Returns the offset which (possibly) caused the error.

Note that this offset may not be exact but may be usable as a hint.

Implementors§

Source§

impl ParseErrorInfo for ParseError

Source§

impl ParseErrorInfo for ParseErrorEither

Available on crate feature easy-functions only.