Fields
major: u16
minor: u16
Implementations
sourceimpl Version
impl Version
pub const V1_0_2: Version = Version { major: 45, minor: 3 }
pub const V1_1: Version = Version { major: 45, minor: 3 }
pub const V1_2: Version = Version { major: 46, minor: 0 }
pub const V1_3: Version = Version { major: 47, minor: 0 }
pub const V1_4: Version = Version { major: 48, minor: 0 }
pub const V5_0: Version = Version { major: 49, minor: 0 }
pub const V6: Version = Version { major: 50, minor: 0 }
pub const V7: Version = Version { major: 51, minor: 0 }
pub const V8: Version = Version { major: 52, minor: 0 }
pub const V9: Version = Version { major: 53, minor: 0 }
pub const V10: Version = Version { major: 54, minor: 0 }
pub const V11: Version = Version { major: 55, minor: 0 }
pub const V12: Version = Version { major: 56, minor: 0 }
pub const V13: Version = Version { major: 57, minor: 0 }
pub const V14: Version = Version { major: 58, minor: 0 }
pub const V15: Version = Version { major: 59, minor: 0 }
pub const V16: Version = Version { major: 60, minor: 0 }
pub const V17: Version = Version { major: 61, minor: 0 }
pub const V18: Version = Version { major: 62, minor: 0 }
sourcepub const fn latest() -> Version
pub const fn latest() -> Version
The latest version which is guaranteed to work with this library. Changes of this value are not considered breaking changes.
pub fn is_preview(self) -> bool
Trait Implementations
sourceimpl Ord for Version
impl Ord for Version
sourceimpl PartialOrd<Version> for Version
impl PartialOrd<Version> for Version
sourcefn partial_cmp(&self, other: &Version) -> Option<Ordering>
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Version
impl Eq for Version
impl StructuralEq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more