pub struct Version {
pub components: Vec<u32>,
/* private fields */
}Expand description
Represents an R version string while preserving its original separators.
R treats . and - as equivalent separators for comparison, but callers may
need to round-trip the exact spelling from DESCRIPTION relationship fields.
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
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