pub struct VersionValidator;Expand description
Validates version compatibility between projects
Implementations§
Source§impl VersionValidator
impl VersionValidator
Sourcepub fn is_compatible(constraint: &str, new_version: &str) -> Result<bool>
pub fn is_compatible(constraint: &str, new_version: &str) -> Result<bool>
Checks if a new version is compatible with a constraint
Sourcepub fn validate_update(
_current_version: &str,
new_version: &str,
dependent_constraints: &[&str],
) -> Result<bool>
pub fn validate_update( _current_version: &str, new_version: &str, dependent_constraints: &[&str], ) -> Result<bool>
Validates that a new version doesn’t break dependent projects
Trait Implementations§
Source§impl Clone for VersionValidator
impl Clone for VersionValidator
Source§fn clone(&self) -> VersionValidator
fn clone(&self) -> VersionValidator
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 moreAuto Trait Implementations§
impl Freeze for VersionValidator
impl RefUnwindSafe for VersionValidator
impl Send for VersionValidator
impl Sync for VersionValidator
impl Unpin for VersionValidator
impl UnwindSafe for VersionValidator
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