pub struct MovableRef<T: 'static> { /* private fields */ }Expand description
A reference to a movable item through a stable pointer slot.
The slot is updated when a TypedMovableSection is reordered (for example
by TypedMovableSection::sort_unstable). Do not keep an &T from
dereferencing this handle across such an update.
Implementations§
Trait Implementations§
Source§impl<T> Debug for MovableRef<T>where
T: Debug,
impl<T> Debug for MovableRef<T>where
T: Debug,
Source§impl<T> Deref for MovableRef<T>
impl<T> Deref for MovableRef<T>
Source§impl<T> Display for MovableRef<T>where
T: Display,
impl<T> Display for MovableRef<T>where
T: Display,
Source§impl<T> SectionItemLocation<T> for &MovableRef<T>
impl<T> SectionItemLocation<T> for &MovableRef<T>
impl<T> Send for MovableRef<T>where
T: Send,
impl<T> Sync for MovableRef<T>where
T: Sync,
Auto Trait Implementations§
impl<T> !Freeze for MovableRef<T>
impl<T> !RefUnwindSafe for MovableRef<T>
impl<T> Unpin for MovableRef<T>
impl<T> UnsafeUnpin for MovableRef<T>
impl<T> UnwindSafe for MovableRef<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