pub struct MetaSlotModel {
pub status: MetaSlotStatus,
pub storage: MemContents<MetaSlotStorage>,
pub ref_count: u64,
pub vtable_ptr: MemContents<usize>,
pub in_list: u64,
pub self_addr: usize,
pub usage: PageUsage,
}Fields§
§status: MetaSlotStatus§storage: MemContents<MetaSlotStorage>§ref_count: u64§vtable_ptr: MemContents<usize>§in_list: u64§self_addr: usize§usage: PageUsageTrait Implementations§
Source§impl Inv for MetaSlotModel
impl Inv for MetaSlotModel
Source§open spec fn inv(self) -> bool
open spec fn inv(self) -> bool
{
match self.ref_count {
REF_COUNT_UNUSED => (
&&& self.vtable_ptr.is_uninit()
&&& self.in_list == 0
),
REF_COUNT_UNIQUE => (
&&& self.vtable_ptr.is_init()
),
0 => (
&&& self.vtable_ptr.is_uninit()
&&& self.in_list == 0
),
_ if self.ref_count < REF_COUNT_MAX => (
&&& self.vtable_ptr.is_init()
),
_ => false,
}
}Auto Trait Implementations§
impl !Freeze for MetaSlotModel
impl !RefUnwindSafe for MetaSlotModel
impl Send for MetaSlotModel
impl Sync for MetaSlotModel
impl Unpin for MetaSlotModel
impl UnwindSafe for MetaSlotModel
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