Struct vstd::ptr::DeallocRaw
source · pub struct DeallocRaw { /* 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 DeallocRaw
impl DeallocRaw
sourcepub spec fn view(self) -> DeallocRawData
👎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) -> DeallocRawData
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)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_typed<V>(tracked self) -> tracked dealloc : Dealloc<V>
👎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_typed<V>(tracked self) -> tracked dealloc : Dealloc<V>
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)requires
is_sized::<V>(),
self@.size === size_of::<V>(),
self@.align === align_of::<V>(),
ensuresdealloc@.pptr === self@.pptr,
sourcepub proof fn borrow_typed<V>(tracked &self) -> tracked dealloc : &Dealloc<V>
👎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_typed<V>(tracked &self) -> tracked dealloc : &Dealloc<V>
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)requires
is_sized::<V>(),
self@.size === size_of::<V>(),
self@.align === align_of::<V>(),
ensuresdealloc@.pptr === self@.pptr,
Auto Trait Implementations§
impl Freeze for DeallocRaw
impl RefUnwindSafe for DeallocRaw
impl Send for DeallocRaw
impl Sync for DeallocRaw
impl Unpin for DeallocRaw
impl UnwindSafe for DeallocRaw
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