pub struct TempRefPin<T: ?Sized>(/* private fields */);
Expand description
Similar to TempRefMut
, but represents a pinned mutable reference.
Trait Implementations§
Source§impl<T: ?Sized> Deref for TempRefPin<T>
impl<T: ?Sized> Deref for TempRefPin<T>
Source§impl<T: Ord + ?Sized> Ord for TempRefPin<T>
impl<T: Ord + ?Sized> Ord for TempRefPin<T>
Source§fn cmp(&self, other: &TempRefPin<T>) -> Ordering
fn cmp(&self, other: &TempRefPin<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + ?Sized> PartialOrd for TempRefPin<T>
impl<T: PartialOrd + ?Sized> PartialOrd for TempRefPin<T>
Source§impl<T: ?Sized> TempRepr for TempRefPin<T>
impl<T: ?Sized> TempRepr for TempRefPin<T>
Source§impl<T: ?Sized> TempReprMut for TempRefPin<T>
impl<T: ?Sized> TempReprMut for TempRefPin<T>
Source§type Mutable<'a> = Pin<&'a mut T>
where
Self: 'a
type Mutable<'a> = Pin<&'a mut T> where Self: 'a
The type that
Self
is a temporary representation of. May contain mutable references of
lifetime 'a
.Source§unsafe fn new_temp_mut(obj: Self::Mutable<'_>) -> Self
unsafe fn new_temp_mut(obj: Self::Mutable<'_>) -> Self
Converts the given object to a temporary representation without a lifetime parameter. Read more
Source§fn get_mut(&mut self) -> Self::Mutable<'_>
fn get_mut(&mut self) -> Self::Mutable<'_>
Converts from a mutable reference to the temporary representation back to the original type,
with a restricted lifetime.
Source§fn get_mut_pinned(self: Pin<&mut Self>) -> Self::Mutable<'_>
fn get_mut_pinned(self: Pin<&mut Self>) -> Self::Mutable<'_>
Like
TempReprMut::get_mut
, but takes a pinned mutable reference to Self
.Source§impl<T: ?Sized> TempReprMutChk for TempRefPin<T>
impl<T: ?Sized> TempReprMutChk for TempRefPin<T>
type SwapChkData = NonNull<T>
Source§fn swap_chk_data(&self) -> Self::SwapChkData
fn swap_chk_data(&self) -> Self::SwapChkData
Obtains an object (usually a copy of the internal state of
self
) that can be used to check
whether self
was swapped with another instance of Self
in such a way that the safety
rules of TempReprMutChk
are violated.impl<T: Eq + ?Sized> Eq for TempRefPin<T>
impl<T: ?Sized> StructuralPartialEq for TempRefPin<T>
Auto Trait Implementations§
impl<T> Freeze for TempRefPin<T>where
T: ?Sized,
impl<T> RefUnwindSafe for TempRefPin<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for TempRefPin<T>
impl<T> Sync for TempRefPin<T>
impl<T> Unpin for TempRefPin<T>where
T: ?Sized,
impl<T> UnwindSafe for TempRefPin<T>where
T: RefUnwindSafe + ?Sized,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more