pub struct OsReleaseEntry<'a> { /* private fields */ }Expand description
An entry in the os-release file.
Implementations§
Source§impl<'a> OsReleaseEntry<'a>
impl<'a> OsReleaseEntry<'a>
Sourcepub fn value_as_list(&self) -> impl Iterator<Item = &str>
pub fn value_as_list(&self) -> impl Iterator<Item = &str>
Returns the value of the entry as a list of strings.
Sourcepub fn value_as_url(&self) -> Result<Url, ParseError>
Available on crate feature url only.
pub fn value_as_url(&self) -> Result<Url, ParseError>
url only.Returns the value of the entry as a URL.
Sourcepub fn value_as_date(&self) -> Result<NaiveDate, ParseError>
Available on crate feature date only.
pub fn value_as_date(&self) -> Result<NaiveDate, ParseError>
date only.Returns the value of the entry as a date.
Trait Implementations§
Source§impl<'a> Clone for OsReleaseEntry<'a>
impl<'a> Clone for OsReleaseEntry<'a>
Source§fn clone(&self) -> OsReleaseEntry<'a>
fn clone(&self) -> OsReleaseEntry<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for OsReleaseEntry<'a>
impl<'a> Debug for OsReleaseEntry<'a>
Source§impl<'a> FromIterator<OsReleaseEntry<'a>> for OsRelease
impl<'a> FromIterator<OsReleaseEntry<'a>> for OsRelease
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = OsReleaseEntry<'a>>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = OsReleaseEntry<'a>>,
Creates a value from an iterator. Read more
Source§impl<'a> Hash for OsReleaseEntry<'a>
impl<'a> Hash for OsReleaseEntry<'a>
Source§impl<'a> PartialEq for OsReleaseEntry<'a>
impl<'a> PartialEq for OsReleaseEntry<'a>
impl<'a> Eq for OsReleaseEntry<'a>
impl<'a> StructuralPartialEq for OsReleaseEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for OsReleaseEntry<'a>
impl<'a> RefUnwindSafe for OsReleaseEntry<'a>
impl<'a> Send for OsReleaseEntry<'a>
impl<'a> Sync for OsReleaseEntry<'a>
impl<'a> Unpin for OsReleaseEntry<'a>
impl<'a> UnwindSafe for OsReleaseEntry<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.