pub struct VersionParserUtils;Expand description
Generic version parser utilities
Implementations§
Source§impl VersionParserUtils
impl VersionParserUtils
Sourcepub fn is_prerelease(version: &str) -> bool
pub fn is_prerelease(version: &str) -> bool
Check if a version string indicates a prerelease
Sourcepub fn clean_version(version: &str, prefixes: &[&str]) -> String
pub fn clean_version(version: &str, prefixes: &[&str]) -> String
Clean version string (remove prefixes like ‘v’, ‘go’, etc.)
Sourcepub fn sort_versions_desc(versions: Vec<VersionInfo>) -> Vec<VersionInfo>
pub fn sort_versions_desc(versions: Vec<VersionInfo>) -> Vec<VersionInfo>
Sort versions in descending order (latest first)
Auto Trait Implementations§
impl Freeze for VersionParserUtils
impl RefUnwindSafe for VersionParserUtils
impl Send for VersionParserUtils
impl Sync for VersionParserUtils
impl Unpin for VersionParserUtils
impl UnwindSafe for VersionParserUtils
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