Struct sum_type::InvalidType [−][src]
pub struct InvalidType { pub expected_variant: &'static str, pub actual_variant: &'static str, pub all_variants: &'static [&'static str], // some fields omitted }
The result of a failed conversion from TryFrom
.
Fields
expected_variant: &'static str
The variant this conversion is valid for.
actual_variant: &'static str
The actual variant.
all_variants: &'static [&'static str]
All possible variants.
Trait Implementations
impl Debug for InvalidType
[src]
impl Debug for InvalidType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for InvalidType
[src]
impl Copy for InvalidType
impl Clone for InvalidType
[src]
impl Clone for InvalidType
fn clone(&self) -> InvalidType
[src]
fn clone(&self) -> InvalidType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for InvalidType
[src]
impl PartialEq for InvalidType
fn eq(&self, other: &InvalidType) -> bool
[src]
fn eq(&self, other: &InvalidType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InvalidType) -> bool
[src]
fn ne(&self, other: &InvalidType) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for InvalidType
impl Send for InvalidType
impl Sync for InvalidType
impl Sync for InvalidType