#[non_exhaustive]pub enum MapReaderError<E> {
ChunkError(usize, Error),
Custom(E),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<E: Debug> Debug for MapReaderError<E>
impl<E: Debug> Debug for MapReaderError<E>
Source§impl<E> Display for MapReaderError<E>where
E: Display,
impl<E> Display for MapReaderError<E>where
E: Display,
Source§impl<E> Error for MapReaderError<E>
impl<E> Error for MapReaderError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<E> Freeze for MapReaderError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for MapReaderError<E>
impl<E> Send for MapReaderError<E>where
E: Send,
impl<E> Sync for MapReaderError<E>where
E: Sync,
impl<E> Unpin for MapReaderError<E>where
E: Unpin,
impl<E> UnsafeUnpin for MapReaderError<E>where
E: UnsafeUnpin,
impl<E> !UnwindSafe for MapReaderError<E>
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
Source§impl<T> TransformExt for T
impl<T> TransformExt for T
fn transform<Q>(self, transform: impl FnOnce(T) -> Q) -> Q
fn modify<Q>(self, modify: impl FnOnce(&mut T) -> Q) -> T
Source§fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
fn modify_if<Q>(self, condition: bool, modify: impl FnOnce(&mut T) -> Q) -> T
Example Read more