pub struct W<T>(pub T);Expand description
A generic wrapper tuple struct implementing the newtype pattern.
This is a utility type for creating zero-cost abstractions.
Tuple Fields§
§0: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for W<T>where
T: Freeze,
impl<T> RefUnwindSafe for W<T>where
T: RefUnwindSafe,
impl<T> Send for W<T>where
T: Send,
impl<T> Sync for W<T>where
T: Sync,
impl<T> Unpin for W<T>where
T: Unpin,
impl<T> UnsafeUnpin for W<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for W<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