pub struct Tr<T: ?Sized>(/* private fields */);
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Tr<T>
impl<T> RefUnwindSafe for Tr<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Tr<T>
impl<T> Sync for Tr<T>
impl<T> Unpin for Tr<T>
impl<T> UnwindSafe for Tr<T>where
T: UnwindSafe + ?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<U, T> FromUnpinned<Unpinned<U, T>> for Twhere
T: FromUnpinned<U>,
impl<U, T> FromUnpinned<Unpinned<U, T>> for Twhere
T: FromUnpinned<U>,
Source§type PinData = <T as FromUnpinned<U>>::PinData
type PinData = <T as FromUnpinned<U>>::PinData
This associated type can be used to retain information between the creation of the instance and its pinning.
This allows for some sort of “two-steps initialization” without having to store the initialization part in the
type itself.
Source§unsafe fn from_unpinned(
src: Unpinned<U, T>,
) -> (T, <T as FromUnpinned<Unpinned<U, T>>>::PinData)
unsafe fn from_unpinned( src: Unpinned<U, T>, ) -> (T, <T as FromUnpinned<Unpinned<U, T>>>::PinData)
Performs a first initialization step, resulting in the creation of the
Self
instance. Read more