[−][src]Struct flatk::chunked::SortedChunks
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]
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]
fn clone(&self) -> SortedChunks<O>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = usize>,
[src]
T: IntoIterator<Item = usize>,
impl<'a, O: Get<'a, Range<usize>>> GetIndex<'a, SortedChunks<O>> for Range<usize>
[src]
type Output = SortedChunks<O::Output>
fn get(self, sorted_chunks: &SortedChunks<O>) -> Option<Self::Output>
[src]
impl<I: SliceIndex<[usize]>, O: AsRef<[usize]>> Index<I> for SortedChunks<O>
[src]
type Output = I::Output
The returned type after indexing.
fn index(&self, index: I) -> &Self::Output
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl<O: IntoOwned> IntoOwned for SortedChunks<O>
[src]
type Owned = SortedChunks<O::Owned>
fn into_owned(self) -> Self::Owned
[src]
fn clone_into(self, target: &mut Self::Owned)
[src]
impl<O: Isolate<Range<usize>>> IsolateIndex<SortedChunks<O>> for Range<usize>
[src]
type Output = SortedChunks<O::Output>
fn try_isolate(self, sorted_chunks: SortedChunks<O>) -> Option<Self::Output>
[src]
impl<O: PartialEq> PartialEq<SortedChunks<O>> for SortedChunks<O>
[src]
fn eq(&self, other: &SortedChunks<O>) -> bool
[src]
fn ne(&self, other: &SortedChunks<O>) -> bool
[src]
impl<O: Push<usize>> Push<usize> for SortedChunks<O>
[src]
impl<O: RemovePrefix> RemovePrefix for SortedChunks<O>
[src]
fn remove_prefix(&mut self, n: usize)
[src]
impl<O: Reserve> Reserve for SortedChunks<O>
[src]
fn reserve_with_storage(&mut self, n: usize, storage_n: usize)
[src]
fn reserve(&mut self, n: usize)
[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
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
impl<'a> SplitOffsetsAt for SortedChunks<&'a [usize]>
[src]
fn split_offsets_at(
self,
mid: usize
) -> (SortedChunks<&'a [usize]>, SortedChunks<&'a [usize]>, usize)
[src]
self,
mid: usize
) -> (SortedChunks<&'a [usize]>, SortedChunks<&'a [usize]>, usize)
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]
impl<'a, O: AsMut<[usize]>> ViewMut<'a> for SortedChunks<O>
[src]
impl<O: Viewed> Viewed for SortedChunks<O>
[src]
Auto Trait Implementations
impl<O> RefUnwindSafe for SortedChunks<O> where
O: RefUnwindSafe,
O: RefUnwindSafe,
impl<O> Send for SortedChunks<O> where
O: Send,
O: Send,
impl<O> Sync for SortedChunks<O> where
O: Sync,
O: Sync,
impl<O> Unpin for SortedChunks<O> where
O: Unpin,
O: Unpin,
impl<O> UnwindSafe for SortedChunks<O> where
O: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsSlice<T> for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<'a, S, I> Get<'a, I> for S where
I: GetIndex<'a, S>,
[src]
I: GetIndex<'a, S>,
type Output = <I as GetIndex<'a, S>>::Output
fn get(&Self, I) -> Option<<I as GetIndex<'a, S>>::Output>
[src]
fn at(&self, idx: I) -> Self::Output
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<S, I> Isolate<I> for S where
I: IsolateIndex<S>,
[src]
I: IsolateIndex<S>,
type Output = <I as IsolateIndex<S>>::Output
fn try_isolate(Self, I) -> Option<<S as Isolate<I>>::Output>
[src]
fn isolate(self, idx: I) -> Self::Output where
Self: Sized,
[src]
Self: Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,