Struct version_number::parsers::original::OriginalParser
source · pub struct OriginalParser;
Expand description
A convenience interface to the original parser.
You can also use the parser directly using original::Parser
.
Trait Implementations§
source§impl BaseVersionParser for OriginalParser
impl BaseVersionParser for OriginalParser
source§fn parse_base<B: AsRef<[u8]>>(
&self,
input: B
) -> Result<BaseVersion, ParserError>
fn parse_base<B: AsRef<[u8]>>( &self, input: B ) -> Result<BaseVersion, ParserError>
source§impl Debug for OriginalParser
impl Debug for OriginalParser
source§impl FullVersionParser for OriginalParser
impl FullVersionParser for OriginalParser
source§fn parse_full<B: AsRef<[u8]>>(
&self,
input: B
) -> Result<FullVersion, ParserError>
fn parse_full<B: AsRef<[u8]>>( &self, input: B ) -> Result<FullVersion, ParserError>
source§impl VersionParser for OriginalParser
impl VersionParser for OriginalParser
source§fn parse_version<B: AsRef<[u8]>>(
&self,
input: B
) -> Result<Version, ParserError>
fn parse_version<B: AsRef<[u8]>>( &self, input: B ) -> Result<Version, ParserError>
Parse a UTF-8 formatted input buffer,
input
to a Version
.
This version may be a BaseVersion
, or a FullVersion
. Read more