pub struct SemverMatcher;Expand description
Semver-based version matcher for Cargo and npm.
Uses the semver crate to match version requirements. Handles caret (^) and tilde (~) requirements according to semver semantics.
Trait Implementations§
Source§impl Clone for SemverMatcher
impl Clone for SemverMatcher
Source§fn clone(&self) -> SemverMatcher
fn clone(&self) -> SemverMatcher
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 moreimpl Copy for SemverMatcher
Source§impl Debug for SemverMatcher
impl Debug for SemverMatcher
Source§impl VersionRequirementMatcher for SemverMatcher
impl VersionRequirementMatcher for SemverMatcher
Source§fn is_latest_satisfying(
&self,
requirement: &ConcreteVersion,
latest: &ConcreteVersion,
) -> bool
fn is_latest_satisfying( &self, requirement: &ConcreteVersion, latest: &ConcreteVersion, ) -> bool
Check if the latest available version satisfies the requirement. Read more
Auto Trait Implementations§
impl Freeze for SemverMatcher
impl RefUnwindSafe for SemverMatcher
impl Send for SemverMatcher
impl Sync for SemverMatcher
impl Unpin for SemverMatcher
impl UnsafeUnpin for SemverMatcher
impl UnwindSafe for SemverMatcher
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