Struct version_number::parsers::modular::ModularParser
source · pub struct ModularParser;
Expand description
A convenience interface to the modular parser.
If you want low-lever access to the modular parser, and use it as intended, you should use the
modular::Parser
struct directly. This interface primarily exists to have an implementation
of the modular parser for the VersionParser
trait, which allows for interchangeability of
implementations.
Trait Implementations§
source§impl BaseVersionParser for ModularParser
impl BaseVersionParser for ModularParser
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 ModularParser
impl Debug for ModularParser
source§impl FullVersionParser for ModularParser
impl FullVersionParser for ModularParser
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 ModularParser
impl VersionParser for ModularParser
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