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

The variant this conversion is valid for.

The actual variant.

All possible variants.

Trait Implementations

impl Debug for InvalidType
[src]

Formats the value using the given formatter. Read more

impl Copy for InvalidType
[src]

impl Clone for InvalidType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for InvalidType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for InvalidType

impl Sync for InvalidType