Enum semver::Identifier [] [src]

pub enum Identifier {
    Numeric(u64),
    AlphaNumeric(String),
}

An identifier in the pre-release or build metadata.

See sections 9 and 10 of the spec for more about pre-release identifers and build metadata.

Variants

Numeric

An identifier that's solely numbers.

AlphaNumeric

An identifier with letters and numbers.

Trait Implementations

impl Display for Identifier

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

Derived Implementations

impl Debug for Identifier

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

impl Hash for Identifier

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for Identifier

fn cmp(&self, __arg_0: &Identifier) -> Ordering

impl PartialOrd for Identifier

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

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

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

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

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

impl Eq for Identifier

impl PartialEq for Identifier

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

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

impl Clone for Identifier

fn clone(&self) -> Identifier

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