pub struct GenomeBuildIdentifier { /* private fields */ }Expand description
All information needed to identify a genome build.
Implementations§
Source§impl GenomeBuildIdentifier
impl GenomeBuildIdentifier
Sourcepub fn major_assembly(&self) -> &str
pub fn major_assembly(&self) -> &str
Get a &str with the major assembly identifier.
use dabuild::{GenomeBuild, GenomeBuildIdentifier};
use dabuild::builds::get_grch38_p13;
let build: GenomeBuild = get_grch38_p13();
assert_eq!(build.id().major_assembly(), "GRCh38");Trait Implementations§
Source§impl Clone for GenomeBuildIdentifier
impl Clone for GenomeBuildIdentifier
Source§fn clone(&self) -> GenomeBuildIdentifier
fn clone(&self) -> GenomeBuildIdentifier
Returns a duplicate 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 GenomeBuildIdentifier
impl Debug for GenomeBuildIdentifier
Source§impl<T> From<(T, T)> for GenomeBuildIdentifierwhere
T: ToString,
Create GenomeBuildIdentifier from a tuple.
impl<T> From<(T, T)> for GenomeBuildIdentifierwhere
T: ToString,
Create GenomeBuildIdentifier from a tuple.
The tuple must contain two items:
- major assembly
- patch
Use GenomeBuildIdentifier::from_str
to create the identifier without a patch.
Source§impl FromStr for GenomeBuildIdentifier
Create GenomeBuildIdentifier from a &str,
using it as a major assembly.
impl FromStr for GenomeBuildIdentifier
Create GenomeBuildIdentifier from a &str,
using it as a major assembly.
Infallible.
Source§impl Hash for GenomeBuildIdentifier
impl Hash for GenomeBuildIdentifier
Source§impl Ord for GenomeBuildIdentifier
impl Ord for GenomeBuildIdentifier
Source§fn cmp(&self, other: &GenomeBuildIdentifier) -> Ordering
fn cmp(&self, other: &GenomeBuildIdentifier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GenomeBuildIdentifier
impl PartialEq for GenomeBuildIdentifier
Source§impl PartialOrd for GenomeBuildIdentifier
impl PartialOrd for GenomeBuildIdentifier
impl Eq for GenomeBuildIdentifier
impl StructuralPartialEq for GenomeBuildIdentifier
Auto Trait Implementations§
impl Freeze for GenomeBuildIdentifier
impl RefUnwindSafe for GenomeBuildIdentifier
impl Send for GenomeBuildIdentifier
impl Sync for GenomeBuildIdentifier
impl Unpin for GenomeBuildIdentifier
impl UnwindSafe for GenomeBuildIdentifier
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