Enum semver::ParseError [] [src]

pub enum ParseError {
    NonAsciiIdentifier,
    IncorrectParse(Version, String),
    GenericFailure,
}

A ParseError is returned as the Err side of a Result when a version is attempted to be parsed.

Variants

NonAsciiIdentifier

All identifiers must be ASCII.

IncorrectParse

The version was mis-parsed.

GenericFailure

Any other failure.

Trait Implementations

impl Error for ParseError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl Display for ParseError

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialOrd for ParseError

fn partial_cmp(&self, __arg_0: &ParseError) -> Option<Ordering>

fn lt(&self, __arg_0: &ParseError) -> bool

fn le(&self, __arg_0: &ParseError) -> bool

fn gt(&self, __arg_0: &ParseError) -> bool

fn ge(&self, __arg_0: &ParseError) -> bool

impl Debug for ParseError

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for ParseError

fn eq(&self, __arg_0: &ParseError) -> bool

fn ne(&self, __arg_0: &ParseError) -> bool

impl Clone for ParseError

fn clone(&self) -> ParseError

fn clone_from(&mut self, source: &Self)