#[repr(transparent)]pub struct Sized<T>(pub T);
Expand description
Hack for making T: Sized
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Sized<T>where
T: Freeze,
impl<T> RefUnwindSafe for Sized<T>where
T: RefUnwindSafe,
impl<T> Send for Sized<T>where
T: Send,
impl<T> Sync for Sized<T>where
T: Sync,
impl<T> Unpin for Sized<T>where
T: Unpin,
impl<T> UnwindSafe for Sized<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)