Struct uefi::table::boot::MemoryAttribute [−][src]
pub struct MemoryAttribute { /* fields omitted */ }
Expand description
Flags describing the capabilities of a memory range.
Implementations
impl MemoryAttribute
[src]
impl MemoryAttribute
[src]pub const UNCACHEABLE: MemoryAttribute
[src]
pub const UNCACHEABLE: MemoryAttribute
[src]Supports marking as uncacheable.
pub const WRITE_COMBINE: MemoryAttribute
[src]
pub const WRITE_COMBINE: MemoryAttribute
[src]Supports write-combining.
pub const WRITE_THROUGH: MemoryAttribute
[src]
pub const WRITE_THROUGH: MemoryAttribute
[src]Supports write-through.
pub const WRITE_BACK: MemoryAttribute
[src]
pub const WRITE_BACK: MemoryAttribute
[src]Support write-back.
pub const UNCACHABLE_EXPORTED: MemoryAttribute
[src]
pub const UNCACHABLE_EXPORTED: MemoryAttribute
[src]Supports marking as uncacheable, exported and supports the “fetch and add” semaphore mechanism.
pub const WRITE_PROTECT: MemoryAttribute
[src]
pub const WRITE_PROTECT: MemoryAttribute
[src]Supports write-protection.
pub const READ_PROTECT: MemoryAttribute
[src]
pub const READ_PROTECT: MemoryAttribute
[src]Supports read-protection.
pub const EXECUTE_PROTECT: MemoryAttribute
[src]
pub const EXECUTE_PROTECT: MemoryAttribute
[src]Supports disabling code execution.
pub const NON_VOLATILE: MemoryAttribute
[src]
pub const NON_VOLATILE: MemoryAttribute
[src]Persistent memory.
pub const MORE_RELIABLE: MemoryAttribute
[src]
pub const MORE_RELIABLE: MemoryAttribute
[src]This memory region is more reliable than other memory.
pub const READ_ONLY: MemoryAttribute
[src]
pub const READ_ONLY: MemoryAttribute
[src]This memory range can be set as read-only.
pub const RUNTIME: MemoryAttribute
[src]
pub const RUNTIME: MemoryAttribute
[src]This memory must be mapped by the OS when a runtime service is called.
pub const fn empty() -> MemoryAttribute
[src]
pub const fn empty() -> MemoryAttribute
[src]Returns an empty set of flags
pub const fn all() -> MemoryAttribute
[src]
pub const fn all() -> MemoryAttribute
[src]Returns the set containing all flags.
pub fn from_bits(bits: u64) -> Option<MemoryAttribute>
[src]
pub fn from_bits(bits: u64) -> Option<MemoryAttribute>
[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u64) -> MemoryAttribute
[src]
pub const fn from_bits_truncate(bits: u64) -> MemoryAttribute
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u64) -> MemoryAttribute
[src]
pub const unsafe fn from_bits_unchecked(bits: u64) -> MemoryAttribute
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: MemoryAttribute) -> bool
[src]
pub const fn intersects(&self, other: MemoryAttribute) -> bool
[src]Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: MemoryAttribute) -> bool
[src]
pub const fn contains(&self, other: MemoryAttribute) -> bool
[src]Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: MemoryAttribute)
[src]
pub fn insert(&mut self, other: MemoryAttribute)
[src]Inserts the specified flags in-place.
pub fn remove(&mut self, other: MemoryAttribute)
[src]
pub fn remove(&mut self, other: MemoryAttribute)
[src]Removes the specified flags in-place.
pub fn toggle(&mut self, other: MemoryAttribute)
[src]
pub fn toggle(&mut self, other: MemoryAttribute)
[src]Toggles the specified flags in-place.
pub fn set(&mut self, other: MemoryAttribute, value: bool)
[src]
pub fn set(&mut self, other: MemoryAttribute, value: bool)
[src]Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for MemoryAttribute
[src]
impl Binary for MemoryAttribute
[src]impl BitAnd<MemoryAttribute> for MemoryAttribute
[src]
impl BitAnd<MemoryAttribute> for MemoryAttribute
[src]fn bitand(self, other: MemoryAttribute) -> MemoryAttribute
[src]
fn bitand(self, other: MemoryAttribute) -> MemoryAttribute
[src]Returns the intersection between the two sets of flags.
type Output = MemoryAttribute
type Output = MemoryAttribute
The resulting type after applying the &
operator.
impl BitAndAssign<MemoryAttribute> for MemoryAttribute
[src]
impl BitAndAssign<MemoryAttribute> for MemoryAttribute
[src]fn bitand_assign(&mut self, other: MemoryAttribute)
[src]
fn bitand_assign(&mut self, other: MemoryAttribute)
[src]Disables all flags disabled in the set.
impl BitOr<MemoryAttribute> for MemoryAttribute
[src]
impl BitOr<MemoryAttribute> for MemoryAttribute
[src]fn bitor(self, other: MemoryAttribute) -> MemoryAttribute
[src]
fn bitor(self, other: MemoryAttribute) -> MemoryAttribute
[src]Returns the union of the two sets of flags.
type Output = MemoryAttribute
type Output = MemoryAttribute
The resulting type after applying the |
operator.
impl BitOrAssign<MemoryAttribute> for MemoryAttribute
[src]
impl BitOrAssign<MemoryAttribute> for MemoryAttribute
[src]fn bitor_assign(&mut self, other: MemoryAttribute)
[src]
fn bitor_assign(&mut self, other: MemoryAttribute)
[src]Adds the set of flags.
impl BitXor<MemoryAttribute> for MemoryAttribute
[src]
impl BitXor<MemoryAttribute> for MemoryAttribute
[src]fn bitxor(self, other: MemoryAttribute) -> MemoryAttribute
[src]
fn bitxor(self, other: MemoryAttribute) -> MemoryAttribute
[src]Returns the left flags, but with all the right flags toggled.
type Output = MemoryAttribute
type Output = MemoryAttribute
The resulting type after applying the ^
operator.
impl BitXorAssign<MemoryAttribute> for MemoryAttribute
[src]
impl BitXorAssign<MemoryAttribute> for MemoryAttribute
[src]fn bitxor_assign(&mut self, other: MemoryAttribute)
[src]
fn bitxor_assign(&mut self, other: MemoryAttribute)
[src]Toggles the set of flags.
impl Clone for MemoryAttribute
[src]
impl Clone for MemoryAttribute
[src]fn clone(&self) -> MemoryAttribute
[src]
fn clone(&self) -> MemoryAttribute
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MemoryAttribute
[src]
impl Debug for MemoryAttribute
[src]impl Extend<MemoryAttribute> for MemoryAttribute
[src]
impl Extend<MemoryAttribute> for MemoryAttribute
[src]fn extend<T: IntoIterator<Item = MemoryAttribute>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = MemoryAttribute>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<MemoryAttribute> for MemoryAttribute
[src]
impl FromIterator<MemoryAttribute> for MemoryAttribute
[src]fn from_iter<T: IntoIterator<Item = MemoryAttribute>>(
iterator: T
) -> MemoryAttribute
[src]
fn from_iter<T: IntoIterator<Item = MemoryAttribute>>(
iterator: T
) -> MemoryAttribute
[src]Creates a value from an iterator. Read more
impl Hash for MemoryAttribute
[src]
impl Hash for MemoryAttribute
[src]impl LowerHex for MemoryAttribute
[src]
impl LowerHex for MemoryAttribute
[src]impl Not for MemoryAttribute
[src]
impl Not for MemoryAttribute
[src]fn not(self) -> MemoryAttribute
[src]
fn not(self) -> MemoryAttribute
[src]Returns the complement of this set of flags.
type Output = MemoryAttribute
type Output = MemoryAttribute
The resulting type after applying the !
operator.
impl Octal for MemoryAttribute
[src]
impl Octal for MemoryAttribute
[src]impl Ord for MemoryAttribute
[src]
impl Ord for MemoryAttribute
[src]impl PartialEq<MemoryAttribute> for MemoryAttribute
[src]
impl PartialEq<MemoryAttribute> for MemoryAttribute
[src]fn eq(&self, other: &MemoryAttribute) -> bool
[src]
fn eq(&self, other: &MemoryAttribute) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MemoryAttribute) -> bool
[src]
fn ne(&self, other: &MemoryAttribute) -> bool
[src]This method tests for !=
.
impl PartialOrd<MemoryAttribute> for MemoryAttribute
[src]
impl PartialOrd<MemoryAttribute> for MemoryAttribute
[src]fn partial_cmp(&self, other: &MemoryAttribute) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MemoryAttribute) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Sub<MemoryAttribute> for MemoryAttribute
[src]
impl Sub<MemoryAttribute> for MemoryAttribute
[src]fn sub(self, other: MemoryAttribute) -> MemoryAttribute
[src]
fn sub(self, other: MemoryAttribute) -> MemoryAttribute
[src]Returns the set difference of the two sets of flags.
type Output = MemoryAttribute
type Output = MemoryAttribute
The resulting type after applying the -
operator.
impl SubAssign<MemoryAttribute> for MemoryAttribute
[src]
impl SubAssign<MemoryAttribute> for MemoryAttribute
[src]fn sub_assign(&mut self, other: MemoryAttribute)
[src]
fn sub_assign(&mut self, other: MemoryAttribute)
[src]Disables all flags enabled in the set.
impl UpperHex for MemoryAttribute
[src]
impl UpperHex for MemoryAttribute
[src]