pub enum Sum5<A, B, C, D, E> {
A(A),
B(B),
C(C),
D(D),
E(E),
}
Variants§
Implementations§
source§impl<A, B, C, D, E> Sum5<A, B, C, D, E>
impl<A, B, C, D, E> Sum5<A, B, C, D, E>
pub fn is_a(&self) -> bool
pub fn a(self) -> Option<A>
pub fn is_b(&self) -> bool
pub fn b(self) -> Option<B>
pub fn is_c(&self) -> bool
pub fn c(self) -> Option<C>
pub fn is_d(&self) -> bool
pub fn d(self) -> Option<D>
pub fn is_e(&self) -> bool
pub fn e(self) -> Option<E>
pub fn as_ref(&self) -> Sum5<&A, &B, &C, &D, &E>
pub fn as_mut(&mut self) -> Sum5<&mut A, &mut B, &mut C, &mut D, &mut E>
source§impl<A> Sum5<A, A, A, A, A>
impl<A> Sum5<A, A, A, A, A>
pub fn into_inner(self) -> A
Trait Implementations§
source§impl<A: AsMut<Target>, B: AsMut<Target>, C: AsMut<Target>, D: AsMut<Target>, E: AsMut<Target>, Target> AsMut<Target> for Sum5<A, B, C, D, E>
impl<A: AsMut<Target>, B: AsMut<Target>, C: AsMut<Target>, D: AsMut<Target>, E: AsMut<Target>, Target> AsMut<Target> for Sum5<A, B, C, D, E>
source§impl<A: AsRef<Target>, B: AsRef<Target>, C: AsRef<Target>, D: AsRef<Target>, E: AsRef<Target>, Target> AsRef<Target> for Sum5<A, B, C, D, E>
impl<A: AsRef<Target>, B: AsRef<Target>, C: AsRef<Target>, D: AsRef<Target>, E: AsRef<Target>, Target> AsRef<Target> for Sum5<A, B, C, D, E>
source§impl<'de, A, B, C, D, E> Deserialize<'de> for Sum5<A, B, C, D, E>where
A: Deserialize<'de>,
B: Deserialize<'de>,
C: Deserialize<'de>,
D: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, A, B, C, D, E> Deserialize<'de> for Sum5<A, B, C, D, E>where
A: Deserialize<'de>,
B: Deserialize<'de>,
C: Deserialize<'de>,
D: Deserialize<'de>,
E: Deserialize<'de>,
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
source§impl<A: Display, B: Display, C: Display, D: Display, E: Display> Display for Sum5<A, B, C, D, E>
impl<A: Display, B: Display, C: Display, D: Display, E: Display> Display for Sum5<A, B, C, D, E>
source§impl<A: Error, B: Error, C: Error, D: Error, E: Error> Error for Sum5<A, B, C, D, E>
impl<A: Error, B: Error, C: Error, D: Error, E: Error> Error for Sum5<A, B, C, D, E>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl<A: Ord, B: Ord, C: Ord, D: Ord, E: Ord> Ord for Sum5<A, B, C, D, E>
impl<A: Ord, B: Ord, C: Ord, D: Ord, E: Ord> Ord for Sum5<A, B, C, D, E>
1.21.0 · 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, D: PartialEq, E: PartialEq> PartialEq<Sum5<A, B, C, D, E>> for Sum5<A, B, C, D, E>
impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq> PartialEq<Sum5<A, B, C, D, E>> for Sum5<A, B, C, D, E>
source§impl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd, E: PartialOrd> PartialOrd<Sum5<A, B, C, D, E>> for Sum5<A, B, C, D, E>
impl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd, E: PartialOrd> PartialOrd<Sum5<A, B, C, D, E>> for Sum5<A, B, C, D, E>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more