pub struct MemoryRegionArray<const LEN: usize = MAX_REGIONS> { /* private fields */ }Expand description
A heapless set of memory regions.
The set cannot contain more than LEN regions.
Implementations§
Source§impl<const LEN: usize> MemoryRegionArray<LEN>
impl<const LEN: usize> MemoryRegionArray<LEN>
Sourcepub const exec fn new() -> ret : Self
pub const exec fn new() -> ret : Self
ensures
ret.inv(),ret@ == MemoryRegionArrayModel::<LEN>::new(),Constructs an empty set.
Sourcepub const exec fn VERUS_UNERASED_PROXY__new() -> ret : Self
pub const exec fn VERUS_UNERASED_PROXY__new() -> ret : Self
ensures
ret.inv(),ret@ == MemoryRegionArrayModel::<LEN>::new(),Constructs an empty set.
Trait Implementations§
Source§impl<const LEN: usize> Default for MemoryRegionArray<LEN>
impl<const LEN: usize> Default for MemoryRegionArray<LEN>
Source§impl<const LEN: usize> InvView for MemoryRegionArray<LEN>
impl<const LEN: usize> InvView for MemoryRegionArray<LEN>
Source§proof fn view_preserves_inv(self)
proof fn view_preserves_inv(self)
Source§impl<const LEN: usize> View for MemoryRegionArray<LEN>
impl<const LEN: usize> View for MemoryRegionArray<LEN>
Source§closed spec fn view(&self) -> MemoryRegionArrayModel<LEN>
closed spec fn view(&self) -> MemoryRegionArrayModel<LEN>
type V = MemoryRegionArrayModel<LEN>
Auto Trait Implementations§
impl<const LEN: usize> Freeze for MemoryRegionArray<LEN>
impl<const LEN: usize> RefUnwindSafe for MemoryRegionArray<LEN>
impl<const LEN: usize> Send for MemoryRegionArray<LEN>
impl<const LEN: usize> Sync for MemoryRegionArray<LEN>
impl<const LEN: usize> Unpin for MemoryRegionArray<LEN>
impl<const LEN: usize> UnwindSafe for MemoryRegionArray<LEN>
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