Struct noodles::csi::index::reference_sequence::bin::Chunk [−][src]
pub struct Chunk { /* fields omitted */ }
Expand description
An index reference sequence bin chunk.
Implementations
Creates a new chunk.
Examples
use noodles_bgzf as bgzf;
use noodles_csi::index::reference_sequence::bin::Chunk;
let chunk = Chunk::new(bgzf::VirtualPosition::from(8), bgzf::VirtualPosition::from(13));
Returns the start of the chunk as a virtual position.
Examples
use noodles_bgzf as bgzf;
use noodles_csi::index::reference_sequence::bin::Chunk;
let chunk = Chunk::new(bgzf::VirtualPosition::from(8), bgzf::VirtualPosition::from(13));
assert_eq!(chunk.start(), bgzf::VirtualPosition::from(8));
Returns the end of the chunk as a virtual position.
Examples
use noodles_bgzf as bgzf;
use noodles_csi::index::reference_sequence::bin::Chunk;
let chunk = Chunk::new(bgzf::VirtualPosition::from(8), bgzf::VirtualPosition::from(13));
assert_eq!(chunk.end(), bgzf::VirtualPosition::from(13));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Chunk
impl UnwindSafe for Chunk
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.