Struct noodles_gff::directive::gff_version::GffVersion
source · pub struct GffVersion { /* private fields */ }
Expand description
A GFF directive version.
Implementations§
source§impl GffVersion
impl GffVersion
sourcepub fn major(&self) -> u32
pub fn major(&self) -> u32
Returns the major version.
§Examples
use noodles_gff::directive::GffVersion;
let version: GffVersion = "3.1.26".parse()?;
assert_eq!(version.major(), 3);
Trait Implementations§
source§impl Clone for GffVersion
impl Clone for GffVersion
source§fn clone(&self) -> GffVersion
fn clone(&self) -> GffVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GffVersion
impl Debug for GffVersion
source§impl Default for GffVersion
impl Default for GffVersion
source§impl Display for GffVersion
impl Display for GffVersion
source§impl FromStr for GffVersion
impl FromStr for GffVersion
source§impl PartialEq for GffVersion
impl PartialEq for GffVersion
source§fn eq(&self, other: &GffVersion) -> bool
fn eq(&self, other: &GffVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GffVersion
impl StructuralPartialEq for GffVersion
Auto Trait Implementations§
impl Freeze for GffVersion
impl RefUnwindSafe for GffVersion
impl Send for GffVersion
impl Sync for GffVersion
impl Unpin for GffVersion
impl UnwindSafe for GffVersion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.