[][src]Struct scailist::ScAIList

pub struct ScAIList<T: Clone + Eq + Debug> { /* fields omitted */ }

This is the main object of this repo, see associated methods

Methods

impl<T: Clone + Eq + Debug> ScAIList<T>[src]

The ScAIList itself

pub fn new(
    input_intervals: Vec<Interval<T>>,
    min_cov_len: Option<usize>
) -> Self
[src]

Create a new ScAIList out of the passed in intervals. The min_cov_len should probably be left as default, which is 20. It dictates how far ahead to look from a given point to determine if that interval covers enough other intervals to be moved to a sublist. The number of intervals it has to cover is equal to min_cov_len / 2. The number of sublists that might be fored is capped at intervals.len().log2(), but if there aren't many overlaps, fewer will be created.

pub fn upper_bound(stop: u32, intervals: &[Interval<T>]) -> Option<usize>[src]

Binary search to find the right most index where interval.start < query.stop

Important traits for IterScAIList<'a, T>
pub fn iter(&self) -> IterScAIList<T>[src]

Important traits for IterFind<'a, T>
pub fn find(&self, start: u32, stop: u32) -> IterFind<T>[src]

Trait Implementations

impl<T: Debug + Clone + Eq> Debug for ScAIList<T>[src]

Auto Trait Implementations

impl<T> Send for ScAIList<T> where
    T: Send

impl<T> Unpin for ScAIList<T> where
    T: Unpin

impl<T> Sync for ScAIList<T> where
    T: Sync

impl<T> UnwindSafe for ScAIList<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for ScAIList<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]