Struct rust_version::BetaNum [] [src]

pub struct BetaNum(_);

Version for a Rust beta. This is either "beta" or "beta.N", where N is an integer.

Beta versions only implement PartialEq and PartialOrd because betas which don't have a version are not comparable to other beta versions.

Methods

impl BetaNum
[src]

[src]

Creates a beta with a version number.

If zero is given, this is equivalent to BetaNum::ambiguous().

[src]

Creates a beta without a version number.

[src]

Gets the version for this beta, if given.

Trait Implementations

impl Debug for BetaNum
[src]

[src]

Formats the value using the given formatter.

impl Clone for BetaNum
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for BetaNum
[src]

impl Eq for BetaNum
[src]

impl PartialEq for BetaNum
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for BetaNum
[src]

[src]

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

1.3.0
[src]

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

impl Ord for BetaNum
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for BetaNum
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl From<Option<u8>> for BetaNum
[src]

[src]

Performs the conversion.

impl Display for BetaNum
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq<u8> for BetaNum
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl<'a> TryFrom<&'a str> for BetaNum
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[src]

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<'a> TryFrom<&'a [u8]> for BetaNum
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[src]

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl Serialize for BetaNum
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for BetaNum
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more