FrameView

Struct FrameView 

Source
pub struct FrameView<C: PageTableConfig> {
    pub ancestor_chain: Map<int, IntermediatePageTableEntryView<C>>,
    pub leaf: LeafPageTableEntryView<C>,
}

Fields§

§ancestor_chain: Map<int, IntermediatePageTableEntryView<C>>

A map from the ancestor frame level to the PTE that the ancestor maps to its child.

§leaf: LeafPageTableEntryView<C>

The view of the page table leaf entry

Trait Implementations§

Source§

impl<C: PageTableConfig> Inv for FrameView<C>

Source§

open spec fn inv(self) -> bool

{
    &&& pa_is_valid_pt_address(self.leaf.map_to_pa)
    &&& level_is_in_range(self.leaf.level as int)
    &&& self.leaf.map_va % (page_size_spec((self.leaf.level + 1) as PagingLevel) as int)
        == 0
    &&& forall |ancestor_level: int| {
        #[trigger] self.ancestor_chain.contains_key(ancestor_level)
            ==> {
                &&& level_is_in_range(ancestor_level)
                &&& self.leaf.level < ancestor_level
                &&& self.ancestor_chain[ancestor_level].inv()
                &&& self.ancestor_chain[ancestor_level].level == ancestor_level
                &&& if ancestor_level == self.leaf.level + 1 {
                    self.ancestor_chain[ancestor_level].map_to_pa == self.leaf.map_to_pa
                } else {
                    true
                }
                &&& forall |other_ancestor_level: int| {
                    #[trigger] self.ancestor_chain.contains_key(other_ancestor_level)
                        ==> {
                            ||| other_ancestor_level == ancestor_level
                            ||| self.ancestor_chain[other_ancestor_level]
                                != self.ancestor_chain[ancestor_level]

                        }
                }

            }
    }

}

Auto Trait Implementations§

§

impl<C> Freeze for FrameView<C>

§

impl<C> RefUnwindSafe for FrameView<C>
where C: RefUnwindSafe,

§

impl<C> Send for FrameView<C>

§

impl<C> Sync for FrameView<C>

§

impl<C> Unpin for FrameView<C>
where C: Unpin,

§

impl<C> UnwindSafe for FrameView<C>
where C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, VERUS_SPEC__A> FromSpec<T> for VERUS_SPEC__A
where VERUS_SPEC__A: From<T>,

§

fn obeys_from_spec() -> bool

§

fn from_spec(v: T) -> VERUS_SPEC__A

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, VERUS_SPEC__A> IntoSpec<T> for VERUS_SPEC__A
where VERUS_SPEC__A: Into<T>,

§

fn obeys_into_spec() -> bool

§

fn into_spec(self) -> T

§

impl<T, U> IntoSpecImpl<U> for T
where U: From<T>,

§

fn obeys_into_spec() -> bool

§

fn into_spec(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, VERUS_SPEC__A> TryFromSpec<T> for VERUS_SPEC__A
where VERUS_SPEC__A: TryFrom<T>,

§

fn obeys_try_from_spec() -> bool

§

fn try_from_spec( v: T, ) -> Result<VERUS_SPEC__A, <VERUS_SPEC__A as TryFrom<T>>::Error>

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, VERUS_SPEC__A> TryIntoSpec<T> for VERUS_SPEC__A
where VERUS_SPEC__A: TryInto<T>,

§

fn obeys_try_into_spec() -> bool

§

fn try_into_spec(self) -> Result<T, <VERUS_SPEC__A as TryInto<T>>::Error>

§

impl<T, U> TryIntoSpecImpl<U> for T
where U: TryFrom<T>,

§

fn obeys_try_into_spec() -> bool

§

fn try_into_spec(self) -> Result<U, <U as TryFrom<T>>::Error>