Enum noodles_csi::binning_index::index::header::format::Format
source · pub enum Format {
Generic(CoordinateSystem),
Sam,
Vcf,
}
Expand description
A tabix index format.
Variants§
Generic(CoordinateSystem)
A generic format with a defined coordinate system.
Sam
The SAM (Sequence Alignment/Map) format.
Vcf
The VCF (Variant Call Format) format.
Implementations§
source§impl Format
impl Format
sourcepub fn coordinate_system(&self) -> CoordinateSystem
pub fn coordinate_system(&self) -> CoordinateSystem
Returns the coordinate system of the format.
§Examples
use noodles_csi::binning_index::index::header::{format::CoordinateSystem, Format};
let format = Format::Generic(CoordinateSystem::Bed);
assert_eq!(format.coordinate_system(), CoordinateSystem::Bed);
assert_eq!(Format::Sam.coordinate_system(), CoordinateSystem::Gff);
assert_eq!(Format::Vcf.coordinate_system(), CoordinateSystem::Gff);
Trait Implementations§
source§impl PartialEq for Format
impl PartialEq for Format
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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.