pub struct PageProperty {
pub flags: PageFlags,
pub cache: CachePolicy,
pub priv_flags: PrivilegedPageFlags,
}Expand description
The property of a mapped virtual memory page.
Fields§
§flags: PageFlagsThe flags associated with the page,
cache: CachePolicyThe cache policy for the page.
priv_flags: PrivilegedPageFlagsImplementations§
Source§impl PageProperty
impl PageProperty
Sourcepub exec fn new_user(flags: PageFlags, cache: CachePolicy) -> Self
pub exec fn new_user(flags: PageFlags, cache: CachePolicy) -> Self
returns
Self::new_user(flags, cache),Creates a new PageProperty with the given flags and cache policy for the user.
pub fn __VERUS_SPEC_new_user(flags: PageFlags, cache: CachePolicy) -> Self
Sourcepub exec fn new_absent() -> Self
pub exec fn new_absent() -> Self
returns
Self::new_absent(),Creates a page property that implies an invalid page without mappings.
pub fn __VERUS_SPEC_new_absent() -> Self
Source§impl PageProperty
impl PageProperty
Sourcepub proof fn lemma_avail1_tag_encoding(self)
pub proof fn lemma_avail1_tag_encoding(self)
ensures
self.flags.union(PageFlags::AVAIL1()).contains(PageFlags::AVAIL1()),!self.flags.difference(PageFlags::AVAIL1()).contains(PageFlags::AVAIL1()),!self.flags.contains(PageFlags::AVAIL1())
==> self.flags.difference(PageFlags::AVAIL1()) == self.flags,!self.flags.contains(PageFlags::AVAIL1())
==> self.flags.union(PageFlags::AVAIL1()).difference(PageFlags::AVAIL1())
== self.flags,self.flags.contains(PageFlags::AVAIL1())
==> self.flags.difference(PageFlags::AVAIL1()).union(PageFlags::AVAIL1())
== self.flags,Adding and removing AVAIL1 is reversible when it is used as a reserved tag.
Trait Implementations§
Source§impl Clone for PageProperty
impl Clone for PageProperty
Source§fn clone(&self) -> PageProperty
fn clone(&self) -> PageProperty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PageProperty
impl Debug for PageProperty
Source§impl Inv for PageProperty
impl Inv for PageProperty
Source§impl PartialEq for PageProperty
impl PartialEq for PageProperty
Source§fn eq(&self, other: &PageProperty) -> bool
fn eq(&self, other: &PageProperty) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PageProperty
impl Eq for PageProperty
impl StructuralPartialEq for PageProperty
Auto Trait Implementations§
impl Freeze for PageProperty
impl RefUnwindSafe for PageProperty
impl Send for PageProperty
impl Sync for PageProperty
impl Unpin for PageProperty
impl UnsafeUnpin for PageProperty
impl UnwindSafe for PageProperty
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