pub enum MapConfigError {
StartRangeNotAtPageBoundary,
EndRangeNotAtPageBoundary,
RangeTooSmall,
PagesTooSmall,
WordSizeTooLarge,
}Expand description
Error for MapConfig constructor
Variants§
StartRangeNotAtPageBoundary
The start range address is not a multiple of the erase size
EndRangeNotAtPageBoundary
The end range address is not a multiple of the erase size
RangeTooSmall
The map needs at least 2 pages to operate, but got less
PagesTooSmall
The pages of the flash are too small to work with
WordSizeTooLarge
The word size of the flash is bigger than [MAX_WORD_SIZE]
Trait Implementations§
Source§impl Clone for MapConfigError
impl Clone for MapConfigError
Source§fn clone(&self) -> MapConfigError
fn clone(&self) -> MapConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MapConfigError
impl Debug for MapConfigError
impl Eq for MapConfigError
Source§impl PartialEq for MapConfigError
impl PartialEq for MapConfigError
Source§fn eq(&self, other: &MapConfigError) -> bool
fn eq(&self, other: &MapConfigError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MapConfigError
Auto Trait Implementations§
impl Freeze for MapConfigError
impl RefUnwindSafe for MapConfigError
impl Send for MapConfigError
impl Sync for MapConfigError
impl Unpin for MapConfigError
impl UnsafeUnpin for MapConfigError
impl UnwindSafe for MapConfigError
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