#[repr(u8)]pub enum XipPageRemapSize {
_16K = 0,
_32K = 1,
_64K = 2,
}
Expand description
Available sizes for XIP (Execute-In-Place) page remapping.
This enum defines different page sizes used in XIP remapping, with each variant representing a specific page size in kilobytes.
§Variants
_16K
: Represents a 16 KB page size (0)._32K
: Represents a 32 KB page size (1)._64K
: Represents a 64 KB page size (2).
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for XipPageRemapSize
impl Clone for XipPageRemapSize
Source§fn clone(&self) -> XipPageRemapSize
fn clone(&self) -> XipPageRemapSize
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 XipPageRemapSize
impl Debug for XipPageRemapSize
Source§impl Default for XipPageRemapSize
impl Default for XipPageRemapSize
Source§fn default() -> XipPageRemapSize
fn default() -> XipPageRemapSize
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for XipPageRemapSize
impl<'de> Deserialize<'de> for XipPageRemapSize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for XipPageRemapSize
impl Ord for XipPageRemapSize
Source§fn cmp(&self, other: &XipPageRemapSize) -> Ordering
fn cmp(&self, other: &XipPageRemapSize) -> 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 XipPageRemapSize
impl PartialEq for XipPageRemapSize
Source§impl PartialOrd for XipPageRemapSize
impl PartialOrd for XipPageRemapSize
Source§impl Serialize for XipPageRemapSize
impl Serialize for XipPageRemapSize
Source§impl TryFrom<u8> for XipPageRemapSize
impl TryFrom<u8> for XipPageRemapSize
Source§fn try_from(value: u8) -> Result<Self, Self::Error>
fn try_from(value: u8) -> Result<Self, Self::Error>
Attempts to convert a u8
value to an XipPageRemapSize
variant.
This method maps a u8
value to the corresponding XipPageRemapSize
variant.
If the value is not valid, it returns an error with a message indicating the
invalid page remap size.
§Parameters
value
: Theu8
value representing the XIP page remap size.
§Returns
XipPageRemapSize
: The correspondingXipPageRemapSize
variant if the value matches.Error::InvalidEnumValue
: An error if the value doesn’t match a valid remap size.
§Example
use amebazii::types::enums::XipPageRemapSize;
let size = XipPageRemapSize::try_from(2).unwrap();
assert_eq!(size, XipPageRemapSize::_64K); // Successfully converts to 64 KB.
impl Copy for XipPageRemapSize
impl Eq for XipPageRemapSize
impl StructuralPartialEq for XipPageRemapSize
Auto Trait Implementations§
impl Freeze for XipPageRemapSize
impl RefUnwindSafe for XipPageRemapSize
impl Send for XipPageRemapSize
impl Sync for XipPageRemapSize
impl Unpin for XipPageRemapSize
impl UnwindSafe for XipPageRemapSize
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