#[repr(C)]struct OwnedVariant<B> {
payload: B,
pad: Padding<PAYLOAD_PAD_SIZE>,
tag: Tag,
}Fields§
§payload: B§pad: Padding<PAYLOAD_PAD_SIZE>§tag: TagImplementations§
Source§impl<B> OwnedVariant<B>
impl<B> OwnedVariant<B>
Trait Implementations§
Source§impl<B: Clone> Clone for OwnedVariant<B>
impl<B: Clone> Clone for OwnedVariant<B>
Source§fn clone(&self) -> OwnedVariant<B>
fn clone(&self) -> OwnedVariant<B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<B> Freeze for OwnedVariant<B>where
B: Freeze,
impl<B> RefUnwindSafe for OwnedVariant<B>where
B: RefUnwindSafe,
impl<B> Send for OwnedVariant<B>where
B: Send,
impl<B> Sync for OwnedVariant<B>where
B: Sync,
impl<B> Unpin for OwnedVariant<B>where
B: Unpin,
impl<B> UnwindSafe for OwnedVariant<B>where
B: 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