Struct noodles_csi::binning_index::index::reference_sequence::bin::Bin
source · pub struct Bin { /* private fields */ }
Expand description
A binning index reference sequence bin.
Implementations§
source§impl Bin
impl Bin
sourcepub const fn max_id(depth: u8) -> usize
pub const fn max_id(depth: u8) -> usize
Calculates the maximum bin ID.
§Examples
use noodles_csi::binning_index::index::reference_sequence::Bin;
assert_eq!(Bin::max_id(5), 37449);
sourcepub const fn metadata_id(depth: u8) -> usize
pub const fn metadata_id(depth: u8) -> usize
Calculates the metadata bin ID.
§Examples
use noodles_csi::binning_index::index::reference_sequence::Bin;
assert_eq!(Bin::metadata_id(5), 37450);
sourcepub fn new(chunks: Vec<Chunk>) -> Self
pub fn new(chunks: Vec<Chunk>) -> Self
Creates a binning index reference sequence bin.
§Examples
use noodles_csi::binning_index::index::reference_sequence::Bin;
let bin = Bin::new(Vec::new());
Trait Implementations§
impl Eq for Bin
impl StructuralPartialEq for Bin
Auto Trait Implementations§
impl Freeze for Bin
impl RefUnwindSafe for Bin
impl Send for Bin
impl Sync for Bin
impl Unpin for Bin
impl UnwindSafe for Bin
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.