pub struct RerVersion(/* private fields */);Expand description
§RerVersion
§Description
A version type that uses a custom versioning scheme. To match the actual Rez versioning scheme, the version string must be alphanumeric and can contain any character except for whitespace.
§Examples
use rer_version::RerVersion;
let v: RerVersion = "1.2.3-alpha+beta".try_into().unwrap();
assert_eq!(v.to_string(), "1.2.3-alpha+beta");Internally Rc-wrapped so cloning a version — which happens constantly,
since versions are embedded in every Ranges the solver copies — is a
refcount bump rather than a deep Vec/String copy.
Implementations§
Trait Implementations§
Source§impl Clone for RerVersion
impl Clone for RerVersion
Source§fn clone(&self) -> RerVersion
fn clone(&self) -> RerVersion
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 RerVersion
impl Debug for RerVersion
Source§impl Display for RerVersion
impl Display for RerVersion
Source§impl Hash for RerVersion
impl Hash for RerVersion
Source§impl Ord for RerVersion
impl Ord for RerVersion
Source§fn cmp(&self, other: &RerVersion) -> Ordering
fn cmp(&self, other: &RerVersion) -> Ordering
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 RerVersion
impl PartialEq for RerVersion
Source§fn eq(&self, other: &RerVersion) -> bool
fn eq(&self, other: &RerVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RerVersion
impl PartialOrd for RerVersion
Source§impl TryFrom<&str> for RerVersion
impl TryFrom<&str> for RerVersion
Source§impl TryFrom<String> for RerVersion
impl TryFrom<String> for RerVersion
impl Eq for RerVersion
impl StructuralPartialEq for RerVersion
Auto Trait Implementations§
impl Freeze for RerVersion
impl RefUnwindSafe for RerVersion
impl !Send for RerVersion
impl !Sync for RerVersion
impl Unpin for RerVersion
impl UnsafeUnpin for RerVersion
impl UnwindSafe for RerVersion
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