#[repr(u8)]pub enum Cacheability {
Non = 0,
WriteBackAllocate = 1,
WriteThrough = 2,
WriteBackNoAllocate = 3,
}Expand description
Allowed Cacheability attributes.
Variants§
Non = 0
Normal memory, Non-cacheable.
WriteBackAllocate = 1
Normal memory, Write-Back Read-Allocate Write-Allocate Cacheable.
WriteThrough = 2
Normal memory, Write-Through Read-Allocate No Write-Allocate Cacheable.
WriteBackNoAllocate = 3
Normal memory, Write-Back Read-Allocate No Write-Allocate Cacheable.
Trait Implementations§
Source§impl Clone for Cacheability
impl Clone for Cacheability
Source§fn clone(&self) -> Cacheability
fn clone(&self) -> Cacheability
Returns a duplicate 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 Cacheability
impl Debug for Cacheability
Source§impl From<Cacheability> for u8
impl From<Cacheability> for u8
Source§fn from(enum_value: Cacheability) -> Self
fn from(enum_value: Cacheability) -> Self
Converts to this type from the input type.
Source§impl Ord for Cacheability
impl Ord for Cacheability
Source§fn cmp(&self, other: &Cacheability) -> Ordering
fn cmp(&self, other: &Cacheability) -> 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 Cacheability
impl PartialEq for Cacheability
Source§impl PartialOrd for Cacheability
impl PartialOrd for Cacheability
Source§impl TryFrom<u8> for Cacheability
impl TryFrom<u8> for Cacheability
Source§type Error = TryFromPrimitiveError<Cacheability>
type Error = TryFromPrimitiveError<Cacheability>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for Cacheability
impl TryFromPrimitive for Cacheability
const NAME: &'static str = "Cacheability"
type Primitive = u8
type Error = TryFromPrimitiveError<Cacheability>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Cacheability
impl Eq for Cacheability
impl StructuralPartialEq for Cacheability
Auto Trait Implementations§
impl Freeze for Cacheability
impl RefUnwindSafe for Cacheability
impl Send for Cacheability
impl Sync for Cacheability
impl Unpin for Cacheability
impl UnwindSafe for Cacheability
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