pub enum VersionParser {
Star,
Caret,
Tilde,
Exact,
}
Variants§
Implementations§
Source§impl VersionParser
impl VersionParser
Sourcepub fn new(version: &str) -> Result<VersionParser, VersionError>
pub fn new(version: &str) -> Result<VersionParser, VersionError>
Create a new VersionParser from a version string
§Errors
Returns an error if the version string is invalid
pub fn remove_version_prefix(&self, version: &str) -> String
pub fn get_version_to_search( version: &str, ) -> Result<VersionBounds, VersionError>
Trait Implementations§
Source§impl Debug for VersionParser
impl Debug for VersionParser
Source§impl PartialEq for VersionParser
impl PartialEq for VersionParser
impl StructuralPartialEq for VersionParser
Auto Trait Implementations§
impl Freeze for VersionParser
impl RefUnwindSafe for VersionParser
impl Send for VersionParser
impl Sync for VersionParser
impl Unpin for VersionParser
impl UnwindSafe for VersionParser
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