pub struct Pep440Matcher;Expand description
PEP 440 version matcher for PyPI dependencies.
Implements major version comparison strategy:
- For versions >= 1.0: compares major version only
- For versions 0.x: compares major and minor version
This matches the typical Python ecosystem convention where breaking changes happen on major version bumps (or minor bumps for 0.x versions).
Trait Implementations§
Source§impl Clone for Pep440Matcher
impl Clone for Pep440Matcher
Source§fn clone(&self) -> Pep440Matcher
fn clone(&self) -> Pep440Matcher
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 Pep440Matcher
impl Debug for Pep440Matcher
impl Copy for Pep440Matcher
Auto Trait Implementations§
impl Freeze for Pep440Matcher
impl RefUnwindSafe for Pep440Matcher
impl Send for Pep440Matcher
impl Sync for Pep440Matcher
impl Unpin for Pep440Matcher
impl UnwindSafe for Pep440Matcher
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