[]Struct x86::bits64::paging::PML4Flags

#[repr(transparent)]
pub struct PML4Flags { /* fields omitted */ }

PML4 configuration bit description.

Methods

impl PML4Flags

pub const P: PML4Flags

Present; must be 1 to reference a page-directory-pointer table

pub const RW: PML4Flags

Read/write; if 0, writes may not be allowed to the 512-GByte region controlled by this entry (see Section 4.6)

pub const US: PML4Flags

User/supervisor; if 0, user-mode accesses are not allowed to the 512-GByte region controlled by this entry.

pub const PWT: PML4Flags

Page-level write-through; indirectly determines the memory type used to access the page-directory-pointer table referenced by this entry.

pub const PCD: PML4Flags

Page-level cache disable; indirectly determines the memory type used to access the page-directory-pointer table referenced by this entry.

pub const A: PML4Flags

Accessed; indicates whether this entry has been used for linear-address translation.

pub const XD: PML4Flags

If IA32_EFER.NXE = 1, execute-disable If 1, instruction fetches are not allowed from the 512-GByte region.

pub fn empty() -> PML4Flags

Returns an empty set of flags.

pub fn all() -> PML4Flags

Returns the set containing all flags.

pub fn bits(&self) -> u64

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u64) -> Option<PML4Flags>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub fn from_bits_truncate(bits: u64) -> PML4Flags

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

pub fn is_all(&self) -> bool

Returns true if all flags are currently set.

pub fn intersects(&self, other: PML4Flags) -> bool

Returns true if there are flags common to both self and other.

pub fn contains(&self, other: PML4Flags) -> bool

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: PML4Flags)

Inserts the specified flags in-place.

pub fn remove(&mut self, other: PML4Flags)

Removes the specified flags in-place.

pub fn toggle(&mut self, other: PML4Flags)

Toggles the specified flags in-place.

pub fn set(&mut self, other: PML4Flags, value: bool)

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Copy for PML4Flags

impl Debug for PML4Flags

impl PartialEq<PML4Flags> for PML4Flags

impl Eq for PML4Flags

impl Ord for PML4Flags

default fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

default fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

default fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialOrd<PML4Flags> for PML4Flags

impl Hash for PML4Flags

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Sub<PML4Flags> for PML4Flags

type Output = PML4Flags

The resulting type after applying the - operator.

fn sub(self, other: PML4Flags) -> PML4Flags

Returns the set difference of the two sets of flags.

impl SubAssign<PML4Flags> for PML4Flags

fn sub_assign(&mut self, other: PML4Flags)

Disables all flags enabled in the set.

impl Not for PML4Flags

type Output = PML4Flags

The resulting type after applying the ! operator.

fn not(self) -> PML4Flags

Returns the complement of this set of flags.

impl BitAnd<PML4Flags> for PML4Flags

type Output = PML4Flags

The resulting type after applying the & operator.

fn bitand(self, other: PML4Flags) -> PML4Flags

Returns the intersection between the two sets of flags.

impl BitOr<PML4Flags> for PML4Flags

type Output = PML4Flags

The resulting type after applying the | operator.

fn bitor(self, other: PML4Flags) -> PML4Flags

Returns the union of the two sets of flags.

impl BitXor<PML4Flags> for PML4Flags

type Output = PML4Flags

The resulting type after applying the ^ operator.

fn bitxor(self, other: PML4Flags) -> PML4Flags

Returns the left flags, but with all the right flags toggled.

impl BitAndAssign<PML4Flags> for PML4Flags

fn bitand_assign(&mut self, other: PML4Flags)

Disables all flags disabled in the set.

impl BitOrAssign<PML4Flags> for PML4Flags

fn bitor_assign(&mut self, other: PML4Flags)

Adds the set of flags.

impl BitXorAssign<PML4Flags> for PML4Flags

fn bitxor_assign(&mut self, other: PML4Flags)

Toggles the set of flags.

impl Extend<PML4Flags> for PML4Flags

impl FromIterator<PML4Flags> for PML4Flags

impl Octal for PML4Flags

impl Binary for PML4Flags

impl LowerHex for PML4Flags

impl UpperHex for PML4Flags

impl Clone for PML4Flags

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for PML4Flags

impl Sync for PML4Flags

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]