Struct rustup_available_packages::availability::AvailabilityData [−][src]
pub struct AvailabilityData { /* fields omitted */ }
Data about packages availability in rust builds.
Methods
impl AvailabilityData
[src]
impl AvailabilityData
pub fn add_manifest(&mut self, manifest: Manifest)
[src]
pub fn add_manifest(&mut self, manifest: Manifest)
Adds an availability data from a given Manifest
.
pub fn add_manifests(
&mut self,
manifests: impl IntoIterator<Item = Manifest>
)
[src]
pub fn add_manifests(
&mut self,
manifests: impl IntoIterator<Item = Manifest>
)
Adds multiple Manifest
s at once.
pub fn get_available_targets(&self) -> HashSet<&str>
[src]
pub fn get_available_targets(&self) -> HashSet<&str>
Gets a list of targets that have been extracted from manifest files except for the '*' target.
pub fn get_available_packages<'a>(&'a self) -> HashSet<&'a str>
[src]
pub fn get_available_packages<'a>(&'a self) -> HashSet<&'a str>
Returns all available packages throughout all the targets and all the times.
pub fn get_availability_row<I>(
&self,
target: &str,
pkg: &str,
dates: I
) -> Vec<bool> where
I: IntoIterator,
I::Item: Borrow<NaiveDate>,
[src]
pub fn get_availability_row<I>(
&self,
target: &str,
pkg: &str,
dates: I
) -> Vec<bool> where
I: IntoIterator,
I::Item: Borrow<NaiveDate>,
Makes an iterator that maps given dates to true
or false
, depending on whether or not the
given package is available on a given moment.
Availability is checked against the specified target and against the *
target.
Trait Implementations
impl Debug for AvailabilityData
[src]
impl Debug for AvailabilityData
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for AvailabilityData
[src]
impl Default for AvailabilityData
fn default() -> AvailabilityData
[src]
fn default() -> AvailabilityData
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for AvailabilityData
impl Send for AvailabilityData
impl Sync for AvailabilityData
impl Sync for AvailabilityData