pub enum Sum6<A, B, C, D, E, F> {
A(A),
B(B),
C(C),
D(D),
E(E),
F(F),
}
Variants§
Implementations§
source§impl<A, B, C, D, E, F> Sum6<A, B, C, D, E, F>
impl<A, B, C, D, E, F> Sum6<A, B, C, D, E, F>
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 is_f(&self) -> bool
pub fn f(self) -> Option<F>
pub fn as_ref(&self) -> Sum6<&A, &B, &C, &D, &E, &F>
pub fn as_mut(&mut self) -> Sum6<&mut A, &mut B, &mut C, &mut D, &mut E, &mut F>
source§impl<A> Sum6<A, A, A, A, A, A>
impl<A> Sum6<A, 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>, F: AsMut<Target>, Target> AsMut<Target> for Sum6<A, B, C, D, E, F>
impl<A: AsMut<Target>, B: AsMut<Target>, C: AsMut<Target>, D: AsMut<Target>, E: AsMut<Target>, F: AsMut<Target>, Target> AsMut<Target> for Sum6<A, B, C, D, E, F>
source§impl<A: AsRef<Target>, B: AsRef<Target>, C: AsRef<Target>, D: AsRef<Target>, E: AsRef<Target>, F: AsRef<Target>, Target> AsRef<Target> for Sum6<A, B, C, D, E, F>
impl<A: AsRef<Target>, B: AsRef<Target>, C: AsRef<Target>, D: AsRef<Target>, E: AsRef<Target>, F: AsRef<Target>, Target> AsRef<Target> for Sum6<A, B, C, D, E, F>
source§impl<A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone> Clone for Sum6<A, B, C, D, E, F>
impl<A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone> Clone for Sum6<A, B, C, D, E, F>
source§impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug> Debug for Sum6<A, B, C, D, E, F>
impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug> Debug for Sum6<A, B, C, D, E, F>
source§impl<'de, A, B, C, D, E, F> Deserialize<'de> for Sum6<A, B, C, D, E, F>where
A: Deserialize<'de>,
B: Deserialize<'de>,
C: Deserialize<'de>,
D: Deserialize<'de>,
E: Deserialize<'de>,
F: Deserialize<'de>,
impl<'de, A, B, C, D, E, F> Deserialize<'de> for Sum6<A, B, C, D, E, F>where
A: Deserialize<'de>,
B: Deserialize<'de>,
C: Deserialize<'de>,
D: Deserialize<'de>,
E: Deserialize<'de>,
F: 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, F: Display> Display for Sum6<A, B, C, D, E, F>
impl<A: Display, B: Display, C: Display, D: Display, E: Display, F: Display> Display for Sum6<A, B, C, D, E, F>
source§impl<A: Error, B: Error, C: Error, D: Error, E: Error, F: Error> Error for Sum6<A, B, C, D, E, F>
impl<A: Error, B: Error, C: Error, D: Error, E: Error, F: Error> Error for Sum6<A, B, C, D, E, F>
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, F: Ord> Ord for Sum6<A, B, C, D, E, F>
impl<A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord> Ord for Sum6<A, B, C, D, E, F>
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, F: PartialEq> PartialEq<Sum6<A, B, C, D, E, F>> for Sum6<A, B, C, D, E, F>
impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq> PartialEq<Sum6<A, B, C, D, E, F>> for Sum6<A, B, C, D, E, F>
source§impl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd, E: PartialOrd, F: PartialOrd> PartialOrd<Sum6<A, B, C, D, E, F>> for Sum6<A, B, C, D, E, F>
impl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd, E: PartialOrd, F: PartialOrd> PartialOrd<Sum6<A, B, C, D, E, F>> for Sum6<A, B, C, D, E, F>
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