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

The trait implementing a FuzzyHashData 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.