[−][src]Enum ubuntu_version::Codename
The codename associated with an Ubuntu version.
Variants
Methods
impl Codename
[src]
pub fn eol_date(self) -> (u32, u32, u32)
[src]
The date when this release is to be, or was, EOL'd.
pub fn release_date(self) -> (u32, u32, u32)
[src]
Returns the release date in a (year, month, date)
format
pub fn release_timestamp(self) -> u64
[src]
When this was released, as the time in seconds since the Unix Epoch
Trait Implementations
impl Clone for Codename
[src]
impl Copy for Codename
[src]
impl Debug for Codename
[src]
impl Display for Codename
[src]
impl Eq for Codename
[src]
impl From<Codename> for &'static str
[src]
impl From<Codename> for Version
[src]
impl FromStr for Codename
[src]
type Err = CodenameParseError
The associated error which can be returned from parsing.
fn from_str(input: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Codename
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Codename> for Codename
[src]
impl StructuralEq for Codename
[src]
impl StructuralPartialEq for Codename
[src]
impl TryFrom<Version> for Codename
[src]
Auto Trait Implementations
impl RefUnwindSafe for Codename
impl Send for Codename
impl Sync for Codename
impl Unpin for Codename
impl UnwindSafe for Codename
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,