pub enum OneOf3<A, B, C> {
A(A),
B(B),
C(C),
}Variants§
Trait Implementations§
Source§impl<'de, A, B, C> Deserialize<'de> for OneOf3<A, B, C>
impl<'de, A, B, C> Deserialize<'de> for OneOf3<A, B, C>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<A: Eq, B: Eq, C: Eq> Eq for OneOf3<A, B, C>
Source§impl<A: Ord, B: Ord, C: Ord> Ord for OneOf3<A, B, C>
impl<A: Ord, B: Ord, C: Ord> Ord for OneOf3<A, B, C>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<A: PartialEq, B: PartialEq, C: PartialEq> PartialEq for OneOf3<A, B, C>
impl<A: PartialEq, B: PartialEq, C: PartialEq> PartialEq for OneOf3<A, B, C>
Source§impl<A: PartialOrd, B: PartialOrd, C: PartialOrd> PartialOrd for OneOf3<A, B, C>
impl<A: PartialOrd, B: PartialOrd, C: PartialOrd> PartialOrd for OneOf3<A, B, C>
impl<A, B, C> StructuralPartialEq for OneOf3<A, B, C>
Auto Trait Implementations§
impl<A, B, C> Freeze for OneOf3<A, B, C>
impl<A, B, C> RefUnwindSafe for OneOf3<A, B, C>
impl<A, B, C> Send for OneOf3<A, B, C>
impl<A, B, C> Sync for OneOf3<A, B, C>
impl<A, B, C> Unpin for OneOf3<A, B, C>
impl<A, B, C> UnsafeUnpin for OneOf3<A, B, C>
impl<A, B, C> UnwindSafe for OneOf3<A, B, C>
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