pub enum ReadErrorKind {
Unimplemented,
UnknownKey(Box<str>),
MissingKey(&'static str),
NoVariantsMatched(Box<[(&'static str, ReadError)]>),
WhileReadingKey(Cow<'static, str>, Box<ReadErrorKind>),
NumberTooBig(Number),
Custom(Box<str>),
}Variants§
Unimplemented
UnknownKey(Box<str>)
MissingKey(&'static str)
NoVariantsMatched(Box<[(&'static str, ReadError)]>)
WhileReadingKey(Cow<'static, str>, Box<ReadErrorKind>)
NumberTooBig(Number)
Custom(Box<str>)
Trait Implementations§
Source§impl Clone for ReadErrorKind
impl Clone for ReadErrorKind
Source§impl Debug for ReadErrorKind
impl Debug for ReadErrorKind
Source§impl From<ReadErrorKind> for ReadError
impl From<ReadErrorKind> for ReadError
Source§fn from(kind: ReadErrorKind) -> Self
fn from(kind: ReadErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for ReadErrorKind
impl Freeze for ReadErrorKindwhere
*const str is !null: Freeze,
PhantomData<str>: Freeze,
&'static str: Freeze,
*const [(&'static str, ReadError)] is !null: Freeze,
PhantomData<[(&'static str, ReadError)]>: Freeze,
String: Freeze,
*const ReadErrorKind is !null: Freeze,
PhantomData<ReadErrorKind>: Freeze,
impl Move for ReadErrorKind
impl RefUnwindSafe for ReadErrorKindwhere
LazyLock<Capture, impl FnOnce() -> Capture + Send + Sync + UnwindSafe>: RefUnwindSafe,
String: RefUnwindSafe,
impl Send for ReadErrorKind
impl Sync for ReadErrorKind
impl Unpin for ReadErrorKind
impl UnsafeUnpin for ReadErrorKindwhere
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const [(&'static str, ReadError)] is !null: UnsafeUnpin,
PhantomData<[(&'static str, ReadError)]>: UnsafeUnpin,
String: UnsafeUnpin,
*const ReadErrorKind is !null: UnsafeUnpin,
PhantomData<ReadErrorKind>: UnsafeUnpin,
impl UnwindSafe for ReadErrorKindwhere
BoxRaw<str>: UnwindSafe,
&'static str: UnwindSafe,
BoxRaw<[(&'static str, ReadError)]>: UnwindSafe,
String: UnwindSafe,
BoxRaw<ReadErrorKind>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more