pub struct UbuntuDistroInfo { /* private fields */ }

Trait Implementations§

source§

impl DistroInfo for UbuntuDistroInfo

source§

fn from_vec(releases: Vec<DistroRelease>) -> Self

Initialise an UbuntuDistroInfo struct from a vector of DistroReleases

source§

fn distro(&self) -> &Distro

source§

fn releases(&self) -> &Vec<DistroRelease>

source§

fn csv_path() -> &'static str

The full path to the CSV file to read from for this distro
source§

fn from_csv_reader<T: Read>(rdr: Reader<T>) -> Result<Self, Error>

Read records from the given CSV reader to create a Debian/UbuntuDistroInfo object Read more
source§

fn new() -> Result<Self, Error>

Open this distro’s CSV file and parse the release data contained therein
source§

fn all_at(&self, date: NaiveDate) -> Vec<&DistroRelease>

Returns a vector of DistroReleases for releases that had been created at the given date
source§

fn released(&self, date: NaiveDate) -> Vec<&DistroRelease>

Returns a vector of DistroReleases for releases that were released at the given date
source§

fn supported(&self, date: NaiveDate) -> Vec<&DistroRelease>

Returns a vector of DistroReleases for releases that were released and supported at the given date
source§

fn unsupported(&self, date: NaiveDate) -> Vec<&DistroRelease>

Returns a vector of DistroReleases for releases that were released but no longer supported at the given date
source§

fn ubuntu_devel(&self, date: NaiveDate) -> Vec<&DistroRelease>

Returns a vector of DistroReleases for releases that were in development at the given date
source§

fn debian_devel(&self, date: NaiveDate) -> Vec<&DistroRelease>

Returns a vector of DistroReleases for releases that were in development at the given date
source§

fn latest(&self, date: NaiveDate) -> Option<&DistroRelease>

Returns a DistroRelease for the latest supported, non-EOL release at the given date
source§

fn iter(&self) -> Iter<'_, DistroRelease>

source§

impl IntoIterator for UbuntuDistroInfo

§

type Item = DistroRelease

The type of the elements being iterated over.
§

type IntoIter = IntoIter<DistroRelease, Global>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.