pub struct SegmentOwner<M: AnyFrameMeta + ?Sized> {
pub perms: Seq<MetaPerm<M>>,
}Expand description
A SegmentOwner<M> holds the permission tokens for all frames in the
Segment<M> for verification purposes.
Fields§
§perms: Seq<MetaPerm<M>>Implementations§
Source§impl<M: AnyFrameMeta + ?Sized> SegmentOwner<M>
impl<M: AnyFrameMeta + ?Sized> SegmentOwner<M>
Sourcepub open spec fn is_disjoint_with_meta_region(&self, region: &MetaRegionOwners) -> bool
pub open spec fn is_disjoint_with_meta_region(&self, region: &MetaRegionOwners) -> bool
{
forall |i: int| {
0 <= i < self.perms.len() as int
==> {
&&& !region
.dropped_slots
.contains_key(frame_to_index_spec(self.perms[i].addr()))
}
}
}Trait Implementations§
Source§impl<M: AnyFrameMeta + ?Sized> Inv for SegmentOwner<M>
impl<M: AnyFrameMeta + ?Sized> Inv for SegmentOwner<M>
Auto Trait Implementations§
impl<M> Freeze for SegmentOwner<M>
impl<M> !RefUnwindSafe for SegmentOwner<M>
impl<M> Send for SegmentOwner<M>where
M: Send,
impl<M> Sync for SegmentOwner<M>where
M: Sync,
impl<M> Unpin for SegmentOwner<M>where
M: Unpin,
impl<M> UnwindSafe for SegmentOwner<M>where
M: UnwindSafe,
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