Struct ax_banyan::FilteredChunk
source · pub struct FilteredChunk<V, E> {
pub range: Range<u64>,
pub data: Vec<V>,
pub extra: E,
}
Expand description
A filtered chunk. Contains both data and information about the offsets the data resulted from.
Fields§
§range: Range<u64>
index range for this chunk
data: Vec<V>
filtered data Note that this is always in ascending order, even when traversing a tree in descending order.
If no elements were filtered, this will have the same number of elements as the range.
extra: E
arbitrary extra data computed from the leaf or branch index. If you don’t need this you can just pass a fn that returns ()
Trait Implementations§
source§impl<V: Clone, E: Clone> Clone for FilteredChunk<V, E>
impl<V: Clone, E: Clone> Clone for FilteredChunk<V, E>
source§fn clone(&self) -> FilteredChunk<V, E>
fn clone(&self) -> FilteredChunk<V, E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<V: PartialEq, E: PartialEq> PartialEq for FilteredChunk<V, E>
impl<V: PartialEq, E: PartialEq> PartialEq for FilteredChunk<V, E>
source§fn eq(&self, other: &FilteredChunk<V, E>) -> bool
fn eq(&self, other: &FilteredChunk<V, E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<V: Eq, E: Eq> Eq for FilteredChunk<V, E>
impl<V, E> StructuralEq for FilteredChunk<V, E>
impl<V, E> StructuralPartialEq for FilteredChunk<V, E>
Auto Trait Implementations§
impl<V, E> RefUnwindSafe for FilteredChunk<V, E>where
E: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, E> Send for FilteredChunk<V, E>
impl<V, E> Sync for FilteredChunk<V, E>
impl<V, E> Unpin for FilteredChunk<V, E>
impl<V, E> UnwindSafe for FilteredChunk<V, E>where
E: UnwindSafe,
V: 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