pub struct Dealloc<V> { /* private fields */ }
👎Deprecated: The vstd::ptr version of PPtr is deprecated. Use either:
–
PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)Implementations§
source§impl<V> Dealloc<V>
impl<V> Dealloc<V>
sourcepub spec fn view(self) -> DeallocData
👎Deprecated: The vstd::ptr version of PPtr is deprecated. Use either:
– PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)
pub spec fn view(self) -> DeallocData
PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)source§impl<V> Dealloc<V>
impl<V> Dealloc<V>
sourcepub proof fn is_nonnull(tracked &self)
👎Deprecated: The vstd::ptr version of PPtr is deprecated. Use either:
– PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)
pub proof fn is_nonnull(tracked &self)
PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)ensures
self@.pptr != 0,
sourcepub proof fn into_raw(tracked self) -> tracked dealloc_raw : DeallocRaw
👎Deprecated: The vstd::ptr version of PPtr is deprecated. Use either:
– PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)
pub proof fn into_raw(tracked self) -> tracked dealloc_raw : DeallocRaw
PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)ensures
dealloc_raw@.pptr === self@.pptr,
dealloc_raw@.size === size_of::<V>(),
dealloc_raw@.align === align_of::<V>(),
is_sized::<V>(),
sourcepub proof fn borrow_raw(tracked &self) -> tracked dealloc_raw : &DeallocRaw
👎Deprecated: The vstd::ptr version of PPtr is deprecated. Use either:
– PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)
pub proof fn borrow_raw(tracked &self) -> tracked dealloc_raw : &DeallocRaw
PPtr<T>
in vstd::simple_pptr (for simple use-cases, with fixed-size typed heap allocations)
– *mut T
with vstd::raw_ptr (for more advanced use-cases)ensures
dealloc_raw@.pptr === self@.pptr,
dealloc_raw@.size === size_of::<V>(),
dealloc_raw@.align === align_of::<V>(),
is_sized::<V>(),
Auto Trait Implementations§
impl<V> Freeze for Dealloc<V>
impl<V> RefUnwindSafe for Dealloc<V>where
V: RefUnwindSafe,
impl<V> Send for Dealloc<V>where
V: Send,
impl<V> Sync for Dealloc<V>where
V: Sync,
impl<V> Unpin for Dealloc<V>where
V: Unpin,
impl<V> UnwindSafe for Dealloc<V>where
V: 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