Struct yearly_version::VersionConstraint
source · #[repr(C, align(8))]pub struct VersionConstraint {
pub comparator: VersionComparator,
pub year: Option<u32>,
pub major: Option<u32>,
pub minor: Option<u32>,
pub patch: Option<u32>,
}
Fields§
§comparator: VersionComparator
§year: Option<u32>
§major: Option<u32>
§minor: Option<u32>
§patch: Option<u32>
Implementations§
Trait Implementations§
source§impl Clone for VersionConstraint
impl Clone for VersionConstraint
source§fn clone(&self) -> VersionConstraint
fn clone(&self) -> VersionConstraint
Returns a copy 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 VersionConstraint
impl Debug for VersionConstraint
source§impl Default for VersionConstraint
impl Default for VersionConstraint
source§fn default() -> VersionConstraint
fn default() -> VersionConstraint
Returns the “default value” for a type. Read more
source§impl Display for VersionConstraint
impl Display for VersionConstraint
source§impl Hash for VersionConstraint
impl Hash for VersionConstraint
source§impl Into<Comparator> for VersionConstraint
impl Into<Comparator> for VersionConstraint
source§fn into(self) -> Comparator
fn into(self) -> Comparator
Used to register to a management system based on semantic versioning,
source§impl Ord for VersionConstraint
impl Ord for VersionConstraint
source§fn cmp(&self, other: &VersionConstraint) -> Ordering
fn cmp(&self, other: &VersionConstraint) -> 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 VersionConstraint
impl PartialEq for VersionConstraint
source§fn eq(&self, other: &VersionConstraint) -> bool
fn eq(&self, other: &VersionConstraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VersionConstraint
impl PartialOrd for VersionConstraint
source§fn partial_cmp(&self, other: &VersionConstraint) -> Option<Ordering>
fn partial_cmp(&self, other: &VersionConstraint) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for VersionConstraint
impl Eq for VersionConstraint
impl StructuralPartialEq for VersionConstraint
Auto Trait Implementations§
impl Freeze for VersionConstraint
impl RefUnwindSafe for VersionConstraint
impl Send for VersionConstraint
impl Sync for VersionConstraint
impl Unpin for VersionConstraint
impl UnwindSafe for VersionConstraint
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