Enum persy::IndexPutError
source · #[non_exhaustive]pub enum IndexPutError {
Generic(GenericError),
IndexNotFound,
IndexTypeMismatch(Cow<'static, str>),
KeyOrValueTooBig,
}
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 IndexPutError
impl Debug for IndexPutError
source§impl Display for IndexPutError
impl Display for IndexPutError
source§impl Error for IndexPutError
impl Error for IndexPutError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<GenericError> for IndexPutError
impl From<GenericError> for IndexPutError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<IndexError> for IndexPutError
impl From<IndexError> for IndexPutError
source§fn from(e: IndexError) -> Self
fn from(e: IndexError) -> Self
Converts to this type from the input type.
source§impl From<IndexOpsError> for IndexPutError
impl From<IndexOpsError> for IndexPutError
source§fn from(e: IndexOpsError) -> Self
fn from(e: IndexOpsError) -> Self
Converts to this type from the input type.
source§impl From<IndexPutError> for PersyError
impl From<IndexPutError> for PersyError
source§fn from(e: IndexPutError) -> Self
fn from(e: IndexPutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexPutError
impl !RefUnwindSafe for IndexPutError
impl Send for IndexPutError
impl Sync for IndexPutError
impl Unpin for IndexPutError
impl !UnwindSafe for IndexPutError
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