pub struct PointsToArrayData<V, const N: usize> {
pub ptr: *mut [V; N],
pub value: [MemContents<V>; N],
}Fields§
§ptr: *mut [V; N]§value: [MemContents<V>; N]Implementations§
Source§impl<V, const N: usize> PointsToArrayData<V, N>
impl<V, const N: usize> PointsToArrayData<V, N>
Sourcepub proof fn into_ptr(tracked self) -> tracked data : PointsToData<[V; N]>
pub proof fn into_ptr(tracked self) -> tracked data : PointsToData<[V; N]>
ensures
data.ptr == self.ptr,data.opt_value == mem_contents_unwrap(self.value),Sourcepub proof fn into_array(tracked data: PointsToData<[V; N]>) -> tracked res : PointsToArrayData<V, N>
pub proof fn into_array(tracked data: PointsToData<[V; N]>) -> tracked res : PointsToArrayData<V, N>
ensures
res.ptr == data.ptr,res.value == mem_contents_wrap(data.opt_value),Auto Trait Implementations§
impl<V, const N: usize> Freeze for PointsToArrayData<V, N>where
V: Freeze,
impl<V, const N: usize> RefUnwindSafe for PointsToArrayData<V, N>where
V: RefUnwindSafe,
impl<V, const N: usize> !Send for PointsToArrayData<V, N>
impl<V, const N: usize> !Sync for PointsToArrayData<V, N>
impl<V, const N: usize> Unpin for PointsToArrayData<V, N>where
V: Unpin,
impl<V, const N: usize> UnwindSafe for PointsToArrayData<V, N>where
V: RefUnwindSafe + 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