pub struct Version {
pub components: Vec<u32>,
}Expand description
Represents an R version string like “1.2.3” or “2.5-1”.
R version strings consist of non-negative integers separated by . or -.
Both separators are equivalent: 2.5-1 and 2.5.1 represent the same version.
There is no concept of pre-release versions in R’s versioning scheme.
Fields§
§components: Vec<u32>Version components like [1, 2, 3]
Implementations§
Trait Implementations§
impl Eq for Version
Source§impl From<Version> for Version
impl From<Version> for Version
Source§fn from(version: LossyVersion) -> Self
fn from(version: LossyVersion) -> Self
Converts to this type from the input type.
Source§impl Ord for Version
impl Ord for Version
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 PartialOrd for Version
impl PartialOrd for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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