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 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
Create a new ReleaseIndex
from a given iterable.
NB: Releases should already be sorted from the most recent to the least recent release.