#[non_exhaustive]pub enum NorFlashErrorKind {
NotAligned,
OutOfBounds,
Other,
}
Expand description
NOR flash error kinds.
NOR flash implementations must map their error to those generic error kinds through the
NorFlashError
trait.
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.
NotAligned
The arguments are not properly aligned.
OutOfBounds
The arguments are out of bounds.
Other
Error specific to the implementation.
Trait Implementations§
source§impl Clone for NorFlashErrorKind
impl Clone for NorFlashErrorKind
source§fn clone(&self) -> NorFlashErrorKind
fn clone(&self) -> NorFlashErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NorFlashErrorKind
impl Debug for NorFlashErrorKind
source§impl Display for NorFlashErrorKind
impl Display for NorFlashErrorKind
source§impl Hash for NorFlashErrorKind
impl Hash for NorFlashErrorKind
source§impl NorFlashError for NorFlashErrorKind
impl NorFlashError for NorFlashErrorKind
source§fn kind(&self) -> NorFlashErrorKind
fn kind(&self) -> NorFlashErrorKind
Convert a specific NOR flash error into a generic error kind.
source§impl Ord for NorFlashErrorKind
impl Ord for NorFlashErrorKind
source§fn cmp(&self, other: &NorFlashErrorKind) -> Ordering
fn cmp(&self, other: &NorFlashErrorKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NorFlashErrorKind
impl PartialEq for NorFlashErrorKind
source§fn eq(&self, other: &NorFlashErrorKind) -> bool
fn eq(&self, other: &NorFlashErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NorFlashErrorKind
impl PartialOrd for NorFlashErrorKind
source§fn partial_cmp(&self, other: &NorFlashErrorKind) -> Option<Ordering>
fn partial_cmp(&self, other: &NorFlashErrorKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for NorFlashErrorKind
impl Eq for NorFlashErrorKind
impl StructuralEq for NorFlashErrorKind
impl StructuralPartialEq for NorFlashErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for NorFlashErrorKind
impl Send for NorFlashErrorKind
impl Sync for NorFlashErrorKind
impl Unpin for NorFlashErrorKind
impl UnwindSafe for NorFlashErrorKind
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