[−][src]Struct toml::de::Error
Errors that can occur when deserializing a type.
Methods
impl Error[src]
impl Errorpub fn line_col(&self) -> Option<(usize, usize)>[src]
pub fn line_col(&self) -> Option<(usize, usize)>Produces a (line, column) pair of the position of the error if available
All indexes are 0-based.
Trait Implementations
impl Clone for Error[src]
impl Clone for Errorfn clone(&self) -> Error[src]
fn clone(&self) -> Errorfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Display for Error[src]
impl Display for Errorimpl Debug for Error[src]
impl Debug for Errorimpl Error for Error[src]
impl Error for Errorfn description(&self) -> &str[src]
fn description(&self) -> &strfn cause(&self) -> Option<&dyn Error>1.0.0[src]
fn cause(&self) -> Option<&dyn Error>: replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>The lower-level source of this error, if any. Read more
impl<'de> IntoDeserializer<'de, Error> for Value[src]
impl<'de> IntoDeserializer<'de, Error> for Valuetype Deserializer = Self
The type of the deserializer being converted into.
fn into_deserializer(self) -> Self[src]
fn into_deserializer(self) -> Selfimpl Error for Error[src]
impl Error for Errorfn custom<T: Display>(msg: T) -> Error[src]
fn custom<T: Display>(msg: T) -> Errorfn invalid_type(unexp: Unexpected, exp: &dyn Expected) -> Self[src]
fn invalid_type(unexp: Unexpected, exp: &dyn Expected) -> SelfRaised when a Deserialize receives a type different from what it was expecting. Read more
fn invalid_value(unexp: Unexpected, exp: &dyn Expected) -> Self[src]
fn invalid_value(unexp: Unexpected, exp: &dyn Expected) -> SelfRaised when a Deserialize receives a value of the right type but that is wrong for some other reason. Read more
fn invalid_length(len: usize, exp: &dyn Expected) -> Self[src]
fn invalid_length(len: usize, exp: &dyn Expected) -> SelfRaised when deserializing a sequence or map and the input data contains too many or too few elements. Read more
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self[src]
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> SelfRaised when a Deserialize enum type received a variant with an unrecognized name. Read more
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self[src]
fn unknown_field(field: &str, expected: &'static [&'static str]) -> SelfRaised when a Deserialize struct type received a field with an unrecognized name. Read more
fn missing_field(field: &'static str) -> Self[src]
fn missing_field(field: &'static str) -> SelfRaised when a Deserialize struct type expected to receive a required field with a particular name but that field was not present in the input. Read more
fn duplicate_field(field: &'static str) -> Self[src]
fn duplicate_field(field: &'static str) -> SelfRaised when a Deserialize struct type received more than one of the same field. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut T