pub struct ManuallyDrop<T: TrackDrop> { /* private fields */ }Implementations§
Source§impl<T: TrackDrop> ManuallyDrop<T>
impl<T: TrackDrop> ManuallyDrop<T>
Sourcepub exec fn new(t: T) -> res : Self
pub exec fn new(t: T) -> res : Self
with
Tracked(obligation): Tracked<T::Obligation>,ensuresres@ == t,res.obligation() == obligation,Sourcepub exec fn into_inner(slot: Self) -> res : T
pub exec fn into_inner(slot: Self) -> res : T
with
->
obligation: Tracked<T::Obligation>,ensuresres == slot@,obligation@ == slot.obligation(),Source§impl<T: TrackDrop> ManuallyDrop<T>
impl<T: TrackDrop> ManuallyDrop<T>
Sourcepub closed spec fn obligation(self) -> T::Obligation
pub closed spec fn obligation(self) -> T::Obligation
Trait Implementations§
Source§impl<T: TrackDrop> Deref for ManuallyDrop<T>
impl<T: TrackDrop> Deref for ManuallyDrop<T>
Auto Trait Implementations§
impl<T> Freeze for ManuallyDrop<T>where
T: Freeze,
impl<T> RefUnwindSafe for ManuallyDrop<T>
impl<T> Send for ManuallyDrop<T>
impl<T> Sync for ManuallyDrop<T>
impl<T> Unpin for ManuallyDrop<T>
impl<T> UnsafeUnpin for ManuallyDrop<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ManuallyDrop<T>
Blanket Implementations§
Source§impl<T> DerefSpec for Twhere
T: Deref,
impl<T> DerefSpec for Twhere
T: Deref,
Source§uninterp spec fn deref_spec(&self) -> &<T as Deref>::Target
👎Deprecated: If you can, do not use this module as it adds assumptions about the core of Rust’s deref semantics.
uninterp spec fn deref_spec(&self) -> &<T as Deref>::Target
If you can, do not use this module as it adds assumptions about the core of Rust’s deref semantics.
Source§proof fn deref_spec_eq(&self)
👎Deprecated: If you can, do not use this module as it adds assumptions about the core of Rust’s deref semantics.
proof fn deref_spec_eq(&self)
If you can, do not use this module as it adds assumptions about the core of Rust’s deref semantics.
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