pub struct Index<I> { /* private fields */ }
Expand description
A binning index.
Implementations§
Source§impl<I> Index<I>where
I: Index,
impl<I> Index<I>where
I: Index,
Sourcepub fn builder() -> Builder<I>
pub fn builder() -> Builder<I>
Returns a builder to create an index from each of its fields.
§Examples
use noodles_csi as csi;
let builder = csi::Index::builder();
Sourcepub fn reference_sequences(&self) -> &[ReferenceSequence<I>]
pub fn reference_sequences(&self) -> &[ReferenceSequence<I>]
Returns a list of indexed reference sequences.
§Examples
use noodles_csi as csi;
let index = csi::Index::default();
assert!(index.reference_sequences().is_empty());
Trait Implementations§
Source§impl<I> BinningIndex for Index<I>where
I: Index,
impl<I> BinningIndex for Index<I>where
I: Index,
Source§fn reference_sequences(
&self,
) -> Box<dyn Iterator<Item = &dyn ReferenceSequence> + '_>
fn reference_sequences( &self, ) -> Box<dyn Iterator<Item = &dyn ReferenceSequence> + '_>
Returns an iterator over reference sequences.
Source§fn unplaced_unmapped_record_count(&self) -> Option<u64>
fn unplaced_unmapped_record_count(&self) -> Option<u64>
Returns the number of unplaced, unmapped records in the associated file.
Source§fn query(
&self,
reference_sequence_id: usize,
interval: Interval,
) -> Result<Vec<Chunk>>
fn query( &self, reference_sequence_id: usize, interval: Interval, ) -> Result<Vec<Chunk>>
Returns the chunks that overlap with the given region.
Source§fn last_first_record_start_position(&self) -> Option<VirtualPosition>
fn last_first_record_start_position(&self) -> Option<VirtualPosition>
Returns the last first record start position. Read more
impl<I: Eq> Eq for Index<I>
impl<I> StructuralPartialEq for Index<I>
Auto Trait Implementations§
impl<I> Freeze for Index<I>
impl<I> RefUnwindSafe for Index<I>where
I: RefUnwindSafe,
impl<I> Send for Index<I>where
I: Send,
impl<I> Sync for Index<I>where
I: Sync,
impl<I> Unpin for Index<I>where
I: Unpin,
impl<I> UnwindSafe for Index<I>where
I: UnwindSafe,
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.