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]

Creates an Ord version of this Channel, usually for testing.

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 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 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 PartialEq<OrdChannel> for Channel
[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 PartialOrd<OrdChannel> for Channel
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

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.