pub struct VersionRange {
pub from: Version,
pub to: Version,
}
Expand description
Representation of version range.
Fields§
§from: Version
First valid version.
to: Version
Last valid version.
Implementations§
Trait Implementations§
Source§impl Clone for VersionRange
impl Clone for VersionRange
Source§fn clone(&self) -> VersionRange
fn clone(&self) -> VersionRange
Returns a duplicate of the value. Read more
1.0.0 · 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 VersionRange
impl Debug for VersionRange
Source§impl Default for VersionRange
impl Default for VersionRange
Source§fn default() -> VersionRange
fn default() -> VersionRange
Returns the “default value” for a type. Read more
Source§impl Hash for VersionRange
impl Hash for VersionRange
Source§impl Ord for VersionRange
impl Ord for VersionRange
Source§fn cmp(&self, other: &VersionRange) -> Ordering
fn cmp(&self, other: &VersionRange) -> Ordering
1.21.0 · 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 VersionRange
impl PartialEq for VersionRange
Source§impl PartialOrd for VersionRange
impl PartialOrd for VersionRange
impl Copy for VersionRange
impl Eq for VersionRange
impl StructuralPartialEq for VersionRange
Auto Trait Implementations§
impl Freeze for VersionRange
impl RefUnwindSafe for VersionRange
impl Send for VersionRange
impl Sync for VersionRange
impl Unpin for VersionRange
impl UnwindSafe for VersionRange
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