Struct vstd::raw_ptr::SharedReference
source · pub struct SharedReference<'a, T>(/* private fields */);
Expand description
This is meant to be a replacement for &'a T
that allows Verus to keep track of
not just the T
value but the pointer as well.
It would be better to get rid of this and use normal reference types &'a T
,
but there are a lot of unsolved implementation questions.
The existence of SharedReference<'a, T>
is a stop-gap.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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