Struct kernel::arch::mmu::PageFlags [−] [src]

pub struct PageFlags {
    // some fields omitted
}

Methods

impl PageFlags

fn empty() -> PageFlags

Returns an empty set of flags.

fn all() -> PageFlags

Returns the set containing all flags.

fn bits(&self) -> usize

Returns the raw value of the flags currently stored.

fn from_bits(bits: usize) -> Option<PageFlags>

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

fn from_bits_truncate(bits: usize) -> PageFlags

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

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

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

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

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

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

fn insert(&mut self, other: PageFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: PageFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: PageFlags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for PageFlags

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for PageFlags

type Output = PageFlags

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

impl BitXor for PageFlags

type Output = PageFlags

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

impl BitAnd for PageFlags

type Output = PageFlags

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

impl Sub for PageFlags

type Output = PageFlags

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

impl Not for PageFlags

type Output = PageFlags

fn not(self) -> PageFlags

Derived Implementations

impl Hash for PageFlags

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

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

impl Ord for PageFlags

fn cmp(&self, __arg_0: &PageFlags) -> Ordering

impl PartialOrd for PageFlags

fn partial_cmp(&self, __arg_0: &PageFlags) -> Option<Ordering>

fn lt(&self, __arg_0: &PageFlags) -> bool

fn le(&self, __arg_0: &PageFlags) -> bool

fn gt(&self, __arg_0: &PageFlags) -> bool

fn ge(&self, __arg_0: &PageFlags) -> bool

impl Clone for PageFlags

fn clone(&self) -> PageFlags

fn clone_from(&mut self, source: &Self)

impl Eq for PageFlags

impl PartialEq for PageFlags

fn eq(&self, __arg_0: &PageFlags) -> bool

fn ne(&self, __arg_0: &PageFlags) -> bool

impl Copy for PageFlags