Enum conjure_codegen::example_types::product::SingleUnion
source · pub enum SingleUnion {
Foo(String),
Unknown(Unknown),
}
Variants§
Trait Implementations§
source§impl Clone for SingleUnion
impl Clone for SingleUnion
source§fn clone(&self) -> SingleUnion
fn clone(&self) -> SingleUnion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SingleUnion
impl Debug for SingleUnion
source§impl<'de> Deserialize<'de> for SingleUnion
impl<'de> Deserialize<'de> for SingleUnion
source§fn deserialize<D>(d: D) -> Result<SingleUnion, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<SingleUnion, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SingleUnion
impl Hash for SingleUnion
source§impl Ord for SingleUnion
impl Ord for SingleUnion
source§fn cmp(&self, other: &SingleUnion) -> Ordering
fn cmp(&self, other: &SingleUnion) -> Ordering
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 PartialEq for SingleUnion
impl PartialEq for SingleUnion
source§fn eq(&self, other: &SingleUnion) -> bool
fn eq(&self, other: &SingleUnion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SingleUnion
impl PartialOrd for SingleUnion
source§fn partial_cmp(&self, other: &SingleUnion) -> Option<Ordering>
fn partial_cmp(&self, other: &SingleUnion) -> Option<Ordering>
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 moresource§impl Serialize for SingleUnion
impl Serialize for SingleUnion
impl Eq for SingleUnion
impl StructuralPartialEq for SingleUnion
Auto Trait Implementations§
impl Freeze for SingleUnion
impl RefUnwindSafe for SingleUnion
impl Send for SingleUnion
impl Sync for SingleUnion
impl Unpin for SingleUnion
impl UnwindSafe for SingleUnion
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.