[][src]Struct flatk::chunked::SortedChunks

pub struct SortedChunks<O = Vec<usize>> { /* fields omitted */ }

An annotated offset collection to be used as indices for Chunked collections that indicates if the indexed chunks are indeed sorted. Note that offsets themeselves are always sorted. This type annotates whether the data is sorted when this type is used for the offsets in Chunked types.

Methods

impl<O: AsRef<[usize]>> SortedChunks<O>[src]

pub fn new(offsets: O) -> Self[src]

Trait Implementations

impl<O: AsMut<[usize]>> AsMut<[usize]> for SortedChunks<O>[src]

impl<O: AsRef<[usize]>> AsRef<[usize]> for SortedChunks<O>[src]

impl Clear for SortedChunks[src]

impl<O: Clone> Clone for SortedChunks<O>[src]

impl<O: Copy> Copy for SortedChunks<O>[src]

impl<O: Debug> Debug for SortedChunks<O>[src]

impl Default for SortedChunks<Vec<usize>>[src]

A default set of offsets must allocate.

impl<O: Dummy> Dummy for SortedChunks<O>[src]

impl<O: AsRef<[usize]>> From<O> for SortedChunks<O>[src]

impl<O: FromIterator<usize> + AsRef<[usize]>> FromIterator<usize> for SortedChunks<O>[src]

impl<'a, O: Get<'a, Range<usize>>> GetIndex<'a, SortedChunks<O>> for Range<usize>[src]

type Output = SortedChunks<O::Output>

impl<I: SliceIndex<[usize]>, O: AsRef<[usize]>> Index<I> for SortedChunks<O>[src]

type Output = I::Output

The returned type after indexing.

impl<I: SliceIndex<[usize]>, O: AsRef<[usize]> + AsMut<[usize]>> IndexMut<I> for SortedChunks<O>[src]

impl<O: AsRef<[usize]>> IndexRange for SortedChunks<O>[src]

fn index_range(&self, range: Range<usize>) -> Option<Range<usize>>[src]

Return the [begin..end) bound of the chunk at the given index.

impl<O: IntoIterator> IntoIterator for SortedChunks<O>[src]

type Item = O::Item

The type of the elements being iterated over.

type IntoIter = O::IntoIter

Which kind of iterator are we turning this into?

impl<O: IntoOwned> IntoOwned for SortedChunks<O>[src]

type Owned = SortedChunks<O::Owned>

impl<O: Isolate<Range<usize>>> IsolateIndex<SortedChunks<O>> for Range<usize>[src]

type Output = SortedChunks<O::Output>

impl<O: PartialEq> PartialEq<SortedChunks<O>> for SortedChunks<O>[src]

impl<O: Push<usize>> Push<usize> for SortedChunks<O>[src]

impl<O: RemovePrefix> RemovePrefix for SortedChunks<O>[src]

impl<O: Reserve> Reserve for SortedChunks<O>[src]

impl<O: Set> Set for SortedChunks<O>[src]

type Elem = O::Elem

Owned element of the set.

type Atom = O::Atom

The most basic element contained by this collection. If this collection contains other collections, this type should be different than Elem. Read more

impl<'a> SplitOffsetsAt for SortedChunks<&'a [usize]>[src]

impl<O> StructuralPartialEq for SortedChunks<O>[src]

impl<O: Truncate> Truncate for SortedChunks<O>[src]

impl<'a, O: AsRef<[usize]>> View<'a> for SortedChunks<O>[src]

type Type = SortedChunks<&'a [usize]>

impl<'a, O: AsMut<[usize]>> ViewMut<'a> for SortedChunks<O>[src]

type Type = SortedChunks<&'a mut [usize]>

impl<O: Viewed> Viewed for SortedChunks<O>[src]

Auto Trait Implementations

impl<O> RefUnwindSafe for SortedChunks<O> where
    O: RefUnwindSafe

impl<O> Send for SortedChunks<O> where
    O: Send

impl<O> Sync for SortedChunks<O> where
    O: Sync

impl<O> Unpin for SortedChunks<O> where
    O: Unpin

impl<O> UnwindSafe for SortedChunks<O> where
    O: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<'a, S, I> Get<'a, I> for S where
    I: GetIndex<'a, S>, 
[src]

type Output = <I as GetIndex<'a, S>>::Output

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<S, I> Isolate<I> for S where
    I: IsolateIndex<S>, 
[src]

type Output = <I as IsolateIndex<S>>::Output

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

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.