pub enum Sum1<A> {
A(A),
}
Variants§
A(A)
Implementations§
Trait Implementations§
source§impl<'de, A> Deserialize<'de> for Sum1<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for Sum1<A>where
A: 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: Error> Error for Sum1<A>
impl<A: Error> Error for Sum1<A>
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> Ord for Sum1<A>
impl<A: Ord> Ord for Sum1<A>
source§impl<A: PartialEq> PartialEq<Sum1<A>> for Sum1<A>
impl<A: PartialEq> PartialEq<Sum1<A>> for Sum1<A>
source§impl<A: PartialOrd> PartialOrd<Sum1<A>> for Sum1<A>
impl<A: PartialOrd> PartialOrd<Sum1<A>> for Sum1<A>
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