Enum uuid::parser::ParseError[][src]

pub enum ParseError {
    InvalidCharacter {
        expected: &'static str,
        found: char,
        index: usize,
    },
    InvalidGroupCount {
        expected: Expected,
        found: usize,
    },
    InvalidGroupLength {
        expected: Expected,
        found: usize,
        group: usize,
    },
    InvalidLength {
        expected: Expected,
        found: usize,
    },
}

An error that can occur while parsing a Uuid string.

Variants

Invalid character in the Uuid string.

Fields of InvalidCharacter

The expected characters.

The invalid character found.

The invalid character position.

Invalid number of segments in the Uuid string.

Fields of InvalidGroupCount

The expected number of segments.

The number of segments found.

Invalid length of a segment in a Uuid string.

Fields of InvalidGroupLength

The expected length of the segment.

The length of segment found.

The segment with invalid length.

Invalid length of the Uuid string.

Fields of InvalidLength

The expected length(s).

The invalid length found.

Trait Implementations

impl Display for ParseError
[src]

Formats the value using the given formatter. Read more

impl Error for ParseError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Clone for ParseError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ParseError
[src]

impl Debug for ParseError
[src]

Formats the value using the given formatter. Read more

impl Eq for ParseError
[src]

impl Hash for ParseError
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for ParseError
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for ParseError
[src]

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

This method tests for !=.

impl PartialOrd for ParseError
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl Send for ParseError

impl Sync for ParseError