pub struct ReprPtr<R, T: Repr<R>> {
pub addr: usize,
pub ptr: PPtr<R>,
pub _T: PhantomData<T>,
}Expand description
Concrete representation of a pointer to an array The length of the array is not stored in the pointer
Fields§
§addr: usize§ptr: PPtr<R>§_T: PhantomData<T>Implementations§
Source§impl<R, T: Repr<R>> ReprPtr<R, T>
impl<R, T: Repr<R>> ReprPtr<R, T>
Sourcepub exec fn take(self, Tracked(perm): Tracked<&mut PointsTo<R, T>>) -> v : T
pub exec fn take(self, Tracked(perm): Tracked<&mut PointsTo<R, T>>) -> v : T
requires
old(perm).pptr() == self,old(perm).is_init(),old(perm).wf(),ensuresperm.pptr() == old(perm).pptr(),perm.mem_contents() == MemContents::Uninit::<T>,v == old(perm).value(),Trait Implementations§
Auto Trait Implementations§
impl<R, T> Freeze for ReprPtr<R, T>
impl<R, T> RefUnwindSafe for ReprPtr<R, T>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, T> Send for ReprPtr<R, T>
impl<R, T> Sync for ReprPtr<R, T>
impl<R, T> Unpin for ReprPtr<R, T>
impl<R, T> UnwindSafe for ReprPtr<R, T>where
T: UnwindSafe,
R: 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