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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.