pub struct GlibcVersion { /* private fields */ }Expand description
A dotted glibc version (e.g. GLIBC_2.36 → [2, 36]), compared
component-wise as integers so 2.36 > 2.4 (lexical string compare would
wrongly order 2.4 > 2.36).
Implementations§
Trait Implementations§
Source§impl Clone for GlibcVersion
impl Clone for GlibcVersion
Source§fn clone(&self) -> GlibcVersion
fn clone(&self) -> GlibcVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlibcVersion
impl Debug for GlibcVersion
impl Eq for GlibcVersion
Source§impl Ord for GlibcVersion
impl Ord for GlibcVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GlibcVersion
impl PartialEq for GlibcVersion
Auto Trait Implementations§
impl Freeze for GlibcVersion
impl RefUnwindSafe for GlibcVersion
impl Send for GlibcVersion
impl Sync for GlibcVersion
impl Unpin for GlibcVersion
impl UnsafeUnpin for GlibcVersion
impl UnwindSafe for GlibcVersion
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.