pub enum OptionAbc<A, B, C> {
A(A),
B(B),
C(C),
}
Variants
A(A)
B(B)
C(C)
Implementations
Trait Implementations
sourceimpl<A, B, C> PartialEq<OptionAbc<A, B, C>> for OptionAbc<A, B, C> where
A: PartialEq<A>,
B: PartialEq<B>,
C: PartialEq<C>,
impl<A, B, C> PartialEq<OptionAbc<A, B, C>> for OptionAbc<A, B, C> where
A: PartialEq<A>,
B: PartialEq<B>,
C: PartialEq<C>,
impl<A, B, C> Eq for OptionAbc<A, B, C> where
A: PartialEq<A>,
B: PartialEq<B>,
C: PartialEq<C>,
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for OptionAbc<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> Send for OptionAbc<A, B, C> where
A: Send,
B: Send,
C: Send,
impl<A, B, C> Sync for OptionAbc<A, B, C> where
A: Sync,
B: Sync,
C: Sync,
impl<A, B, C> Unpin for OptionAbc<A, B, C> where
A: Unpin,
B: Unpin,
C: Unpin,
impl<A, B, C> UnwindSafe for OptionAbc<A, B, C> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more