Struct rust_releases::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
pub fn from_source<S>(source: S) -> Result<ReleaseIndex, <S as Source>::Error> where
S: Source,
pub fn from_source<S>(source: S) -> Result<ReleaseIndex, <S as Source>::Error> where
S: Source,
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
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
impl RefUnwindSafe for ReleaseIndex
impl Send for ReleaseIndex
impl Sync for ReleaseIndex
impl Unpin for ReleaseIndex
impl UnwindSafe for ReleaseIndex
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more