Trait BaseVersionParser

Source
pub trait BaseVersionParser {
    // Required method
    fn parse_base<B: AsRef<[u8]>>(
        &self,
        input: B,
    ) -> Result<BaseVersion, ParserError>;
}
Expand description

Parse a UTF-8 slice of bytes to a BaseVersion.

Required Methods§

Source

fn parse_base<B: AsRef<[u8]>>( &self, input: B, ) -> Result<BaseVersion, ParserError>

Parse a UTF-8 formatted input buffer, input to a BaseVersion.

If you don’t know, or care, whether the version consists of two or three components, you may instead use VersionParser::parse_version.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§