Enum rust_version::Channel [] [src]

pub enum Channel {
    Stable,
    Beta(BetaNum),
    Nightly,
}

Rust version channel.

Channels only implement PartialEq and PartialOrd because betas can't be fully compared. See BetaNum for more information.

Variants

Stable build.

Beta build.

Nightly build.

Methods

impl Channel
[src]

[src]

Checks if this channel is "stable".

[src]

Checks if this channel is "nightly".

[src]

Checks if this channel is "beta".

[src]

Checks if this channel is "beta.n".

[src]

A string for the type of channel, i.e. stable, beta, or nightly.

[src]

Updates this channel via rustup.

[src]

Writes this channel to a buffer.

Trait Implementations

impl Debug for Channel
[src]

[src]

Formats the value using the given formatter.

impl Clone for Channel
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Channel
[src]

impl PartialEq for Channel
[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 Eq for Channel
[src]

impl PartialOrd for Channel
[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 Ord for Channel
[src]

[src]

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

[src]

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

Compares and returns the maximum of two values. Read more

[src]

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

Compares and returns the minimum of two values. Read more

impl Hash for Channel
[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 Display for Channel
[src]

[src]

Formats the value using the given formatter. Read more

impl From<BetaNum> for Channel
[src]

[src]

Performs the conversion.

impl<'a> TryFrom<&'a str> for Channel
[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 Channel
[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 Channel
[src]

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more