Struct rust_version::Version [] [src]

pub struct Version { /* fields omitted */ }

Rust version.

Methods

impl Version
[src]

[src]

Creates a version from a list of known facts.

[src]

Parses the version from a currently installed rustc toolchain.

[src]

Parses the version from a manifest at static.rust-lang.org.

[src]

Parses the version from the latest Stable.

[src]

Parses the version from the latest Stable.

[src]

Parses the version from the latest Stable.

[src]

Installs this version via rustup.

[src]

The release for this version.

[src]

The channel for this version.

[src]

The date for this version.

[src]

The commit for this version.

[src]

The name of the toolchain required by rustup and co.

This doesn't include the target.

Trait Implementations

impl Debug for Version
[src]

[src]

Formats the value using the given formatter.

impl Clone for Version
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Version
[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 Eq for Version
[src]

impl PartialEq for Version
[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 Version
[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 Version
[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 Display for Version
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more