Struct show_notes::e031::unions::Wrapped
source · pub struct Wrapped<T: Copy + Clone>(T);
Expand description
A simple type designed to demo unions. See the body of demo_union
.
Tuple Fields§
§0: T
Trait Implementations§
impl<T: Copy + Copy + Clone> Copy for Wrapped<T>
Auto Trait Implementations§
impl<T> Freeze for Wrapped<T>where
T: Freeze,
impl<T> RefUnwindSafe for Wrapped<T>where
T: RefUnwindSafe,
impl<T> Send for Wrapped<T>where
T: Send,
impl<T> Sync for Wrapped<T>where
T: Sync,
impl<T> Unpin for Wrapped<T>where
T: Unpin,
impl<T> UnwindSafe for Wrapped<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