pub struct ArcPointsTo<T: 'static> {
pub perm: &'static PointsTo<T>,
}Expand description
For Arc<T>, the into_raw method gives shared access to the memory, and the reference count is not decreased,
so the value will not be deallocated until we convert back to Arc<T> and drop it.
See https://doc.rust-lang.org/src/alloc/sync.rs.html#1480.
Fields§
§perm: &'static PointsTo<T>Implementations§
Source§impl<T> ArcPointsTo<T>
impl<T> ArcPointsTo<T>
Sourcepub proof fn tracked_borrow_points_to(tracked &self) -> tracked ret : &'static PointsTo<T>
pub proof fn tracked_borrow_points_to(tracked &self) -> tracked ret : &'static PointsTo<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ArcPointsTo<T>
impl<T> RefUnwindSafe for ArcPointsTo<T>where
T: RefUnwindSafe,
impl<T> Send for ArcPointsTo<T>where
T: Sync,
impl<T> Sync for ArcPointsTo<T>where
T: Sync,
impl<T> Unpin for ArcPointsTo<T>
impl<T> UnwindSafe for ArcPointsTo<T>where
T: RefUnwindSafe,
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