Struct rust_releases_core::Release[][src]

pub struct Release { /* fields omitted */ }

A Rust release with an associated version.

A release may be associated with a channel (stable, beta, nightly).

*Breaking change for > 0.15: After the release of rust-releases 0.15, a breaking change will be made to add support for beta and nightly versions.

Implementations

impl Release[src]

pub fn new_stable(version: Version) -> Self[src]

Construct a new stable release

pub fn is_minor(&self) -> bool[src]

Whether this is a minor release

pub fn is_patch(&self) -> bool[src]

Whether this is a patch release

pub fn version(&self) -> &Version[src]

Get the Rust version for this release

Trait Implementations

impl Clone for Release[src]

impl Debug for Release[src]

impl Eq for Release[src]

impl FromIterator<Release> for ReleaseIndex[src]

fn from_iter<T: IntoIterator<Item = Release>>(iter: T) -> Self[src]

Create a new ReleaseIndex from a given iterable.

NB: Releases should already be sorted from the most recent to the least recent release.

impl Ord for Release[src]

impl PartialEq<Release> for Release[src]

impl PartialOrd<Release> for Release[src]

impl StructuralEq for Release[src]

impl StructuralPartialEq for Release[src]

Auto Trait Implementations

impl RefUnwindSafe for Release

impl Send for Release

impl Sync for Release

impl Unpin for Release

impl UnwindSafe for Release

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.