Struct rust_releases_core::ReleaseIndex[][src]

pub struct ReleaseIndex { /* fields omitted */ }
Expand description

A release index is a data structure holding known Rust releases.

Ordering contract

Releases must be ordered from the newest to the oldest known release.

Implementations

Create a new ReleaseIndex from a given source. Releases available in the index may vary based on the type of Source.

Returns a slice of releases.

Returns the most recent release.

Returns None if the index has not registered any release.

Returns the least recent (oldest) registered release.

Returns None if the index has not registered any release.

Trait Implementations

Formats the value using the given formatter. Read more

Create a new ReleaseIndex from a given iterable.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.