#[non_exhaustive]pub enum FoldStateError {
MissingKey,
DuplicateEntry(MetadataError),
}Expand description
An error representing an invalid FoldState
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 Debug for FoldStateError
impl Debug for FoldStateError
Source§impl Display for FoldStateError
impl Display for FoldStateError
Source§impl Error for FoldStateError
impl Error for FoldStateError
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()
Source§impl From<MetadataError> for FoldStateError
impl From<MetadataError> for FoldStateError
Source§fn from(source: MetadataError) -> Self
fn from(source: MetadataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FoldStateError
impl RefUnwindSafe for FoldStateError
impl Send for FoldStateError
impl Sync for FoldStateError
impl Unpin for FoldStateError
impl UnsafeUnpin for FoldStateError
impl UnwindSafe for FoldStateError
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