pub struct MappedTempRepr<T: HasTempRepr>(/* private fields */);
Expand description
See HasTempRepr
.
Trait Implementations§
Source§impl<T: HasTempRepr> Debug for MappedTempRepr<T>
impl<T: HasTempRepr> Debug for MappedTempRepr<T>
Source§impl<T: HasTempRepr> Display for MappedTempRepr<T>
impl<T: HasTempRepr> Display for MappedTempRepr<T>
Source§impl<T: HasTempRepr> Hash for MappedTempRepr<T>
impl<T: HasTempRepr> Hash for MappedTempRepr<T>
Source§impl<T: HasTempRepr> Ord for MappedTempRepr<T>
impl<T: HasTempRepr> Ord for MappedTempRepr<T>
Source§impl<T: HasTempRepr> PartialEq for MappedTempRepr<T>
impl<T: HasTempRepr> PartialEq for MappedTempRepr<T>
Source§impl<T: HasTempRepr> PartialOrd for MappedTempRepr<T>where
for<'a> T::Shared<'a>: PartialOrd,
impl<T: HasTempRepr> PartialOrd for MappedTempRepr<T>where
for<'a> T::Shared<'a>: PartialOrd,
Source§impl<T: HasTempRepr> TempRepr for MappedTempRepr<T>
impl<T: HasTempRepr> TempRepr for MappedTempRepr<T>
Source§impl<T: HasTempReprMut> TempReprMut for MappedTempRepr<T>
impl<T: HasTempReprMut> TempReprMut for MappedTempRepr<T>
Source§type Mutable<'a> = <T as HasTempReprMut>::Mutable<'a>
where
Self: 'a
type Mutable<'a> = <T as HasTempReprMut>::Mutable<'a> 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: HasTempReprMut<Temp: TempReprMutChk>> TempReprMutChk for MappedTempRepr<T>
impl<T: HasTempReprMut<Temp: TempReprMutChk>> TempReprMutChk for MappedTempRepr<T>
type SwapChkData = <<T as HasTempRepr>::Temp as TempReprMutChk>::SwapChkData
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: HasTempRepr> Eq for MappedTempRepr<T>
Auto Trait Implementations§
impl<T> Freeze for MappedTempRepr<T>
impl<T> RefUnwindSafe for MappedTempRepr<T>
impl<T> Send for MappedTempRepr<T>
impl<T> Sync for MappedTempRepr<T>
impl<T> Unpin for MappedTempRepr<T>
impl<T> UnwindSafe for MappedTempRepr<T>
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