Struct noodles::gff::directive::GffVersion [−][src]
pub struct GffVersion { /* fields omitted */ }
Expand description
A GFF directive version.
Implementations
Returns the major version.
Examples
use noodles_gff::directive::GffVersion;
let version: GffVersion = "3.1.26".parse()?;
assert_eq!(version.major(), 3);
Returns the minor version.
Examples
use noodles_gff::directive::GffVersion;
let version: GffVersion = "3.1.26".parse()?;
assert_eq!(version.minor(), Some(1));
Trait Implementations
Returns the “default value” for a type. Read more
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GffVersion
impl Send for GffVersion
impl Sync for GffVersion
impl Unpin for GffVersion
impl UnwindSafe for GffVersion
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.