Trait version_number::parsers::FullVersionParser
source · pub trait FullVersionParser {
// Required method
fn parse_full<B: AsRef<[u8]>>(
&self,
input: B
) -> Result<FullVersion, ParserError>;
}
Expand description
Parse a UTF-8 slice of bytes to a FullVersion
.
Required Methods§
sourcefn parse_full<B: AsRef<[u8]>>(
&self,
input: B
) -> Result<FullVersion, ParserError>
fn parse_full<B: AsRef<[u8]>>( &self, input: B ) -> Result<FullVersion, ParserError>
Parse a UTF-8 formatted input buffer, input
to a FullVersion
.
If you don’t know, or care, whether the version consists of two or three components,
you may instead use VersionParser::parse_version
.
Object Safety§
This trait is not object safe.