Struct Error
pub struct Error { /* private fields */ }
Errors that can occur when deserializing a type.
Implementations
impl Error
fn message(&self) -> &strWhat went wrong
fn span(&self) -> Option<Range<usize>>The start/end index into the original document where the error occurred
fn set_input(&mut self, input: Option<&str>)Provide the encoded TOML the error applies to
Trait Implementations
impl Clone for Error
fn clone(&self) -> Self
impl Debug for Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Error
impl Error for Error
impl Error for Error
fn custom<T>(msg: T) -> Self where T: Display,
impl Hash for Error
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for Error
fn eq(&self, other: &Self) -> bool