[−][src]Struct scailist::ScAIList
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]
input_intervals: Vec<Interval<T>>,
min_cov_len: Option<usize>
) -> Self
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 IterScAIList<'a, T>
ⓘImportant traits for IterFind<'a, T>pub fn find(&self, start: u32, stop: u32) -> IterFind<T>
[src]
ⓘImportant traits for IterFind<'a, T>
Trait Implementations
Auto Trait Implementations
impl<T> Send for ScAIList<T> where
T: Send,
T: Send,
impl<T> Unpin for ScAIList<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for ScAIList<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for ScAIList<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for ScAIList<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,