pub struct AvailabilityData { /* private fields */ }Expand description
Data about packages availability in rust builds.
Implementations§
Source§impl AvailabilityData
impl AvailabilityData
Sourcepub fn add_manifest(&mut self, manifest: Manifest)
pub fn add_manifest(&mut self, manifest: Manifest)
Adds an availability data from a given Manifest.
Sourcepub fn add_manifests(&mut self, manifests: impl IntoIterator<Item = Manifest>)
pub fn add_manifests(&mut self, manifests: impl IntoIterator<Item = Manifest>)
Adds multiple Manifests at once.
Sourcepub fn get_available_targets(&self) -> HashSet<&str>
pub fn get_available_targets(&self) -> HashSet<&str>
Gets a list of targets that have been extracted from manifest files except for the ‘*’ target.
Sourcepub fn get_available_packages<'a>(&'a self) -> HashSet<&'a str>
pub fn get_available_packages<'a>(&'a self) -> HashSet<&'a str>
Returns all available packages throughout all the targets and all the times.
Sourcepub fn get_availability_row<'a, I>(
&self,
target: &str,
pkg: &'a str,
dates: I,
) -> Option<AvailabilityRow<'a>>
pub fn get_availability_row<'a, I>( &self, target: &str, pkg: &'a str, dates: I, ) -> Option<AvailabilityRow<'a>>
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§
Source§impl Debug for AvailabilityData
impl Debug for AvailabilityData
Source§impl Default for AvailabilityData
impl Default for AvailabilityData
Source§fn default() -> AvailabilityData
fn default() -> AvailabilityData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AvailabilityData
impl RefUnwindSafe for AvailabilityData
impl Send for AvailabilityData
impl Sync for AvailabilityData
impl Unpin for AvailabilityData
impl UnwindSafe for AvailabilityData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more