[−][src]Struct version_rs::Version
Fields
major: u32minor: u32revision: u32Implementations
impl Version[src]
pub fn new(major: u32, minor: u32, revision: u32) -> Self[src]
Creates a new version
pub fn with_major(&self, major: u32) -> Self[src]
Copies the version, updating the major number
pub fn with_minor(&self, minor: u32) -> Self[src]
Copies the version, updating the minor number
pub fn with_revision(&self, revision: u32) -> Self[src]
Copies the version, updating the revision number
Trait Implementations
impl Debug for Version[src]
impl Display for Version[src]
impl Eq for Version[src]
impl From<(u16, u16, u16)> for Version[src]
impl From<(u16, u16)> for Version[src]
impl From<(u32, u32, u32)> for Version[src]
impl From<(u32, u32)> for Version[src]
impl From<(u8, u8, u8)> for Version[src]
impl From<(u8, u8)> for Version[src]
impl From<(usize, usize, usize)> for Version[src]
impl From<(usize, usize)> for Version[src]
impl From<u16> for Version[src]
impl From<u32> for Version[src]
impl From<u8> for Version[src]
impl From<usize> for Version[src]
impl FromStr for Version[src]
type Err = VersionError
The associated error which can be returned from parsing.
fn from_str(string: &str) -> Result<Self, Self::Err>[src]
impl Ord for Version[src]
fn cmp(&self, r: &Self) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Version> for Version[src]
impl PartialOrd<Version> for Version[src]
fn partial_cmp(&self, r: &Version) -> Option<Ordering>[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for Version[src]
impl StructuralPartialEq for Version[src]
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
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> 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>,