struct FilterBytes<'a, OffsetSize> {
src_offsets: &'a [OffsetSize],
src_values: &'a [u8],
dst_offsets: Vec<OffsetSize>,
dst_values: Vec<u8>,
cur_offset: OffsetSize,
}
Expand description
FilterBytes
is created from a source [GenericByteArray
] and can be
used to build a new [GenericByteArray
] by copying values from the source
TODO(raphael): Could this be used for the take kernel as well?
Fields§
§src_offsets: &'a [OffsetSize]
§src_values: &'a [u8]
§dst_offsets: Vec<OffsetSize>
§dst_values: Vec<u8>
§cur_offset: OffsetSize
Implementations§
Source§impl<'a, OffsetSize> FilterBytes<'a, OffsetSize>where
OffsetSize: OffsetSizeTrait,
impl<'a, OffsetSize> FilterBytes<'a, OffsetSize>where
OffsetSize: OffsetSizeTrait,
fn new<T>(capacity: usize, array: &'a GenericByteArray<T>) -> Selfwhere
T: ByteArrayType<Offset = OffsetSize>,
Sourcefn get_value_offset(&self, idx: usize) -> usize
fn get_value_offset(&self, idx: usize) -> usize
Returns the byte offset at idx
Sourcefn get_value_range(&self, idx: usize) -> (usize, usize, OffsetSize)
fn get_value_range(&self, idx: usize) -> (usize, usize, OffsetSize)
Returns the start and end of the value at index idx
along with its length
Sourcefn extend_idx(&mut self, iter: impl Iterator<Item = usize>)
fn extend_idx(&mut self, iter: impl Iterator<Item = usize>)
Extends the in-progress array by the indexes in the provided iterator
Sourcefn extend_slices(&mut self, iter: impl Iterator<Item = (usize, usize)>)
fn extend_slices(&mut self, iter: impl Iterator<Item = (usize, usize)>)
Extends the in-progress array by the ranges in the provided iterator
Auto Trait Implementations§
impl<'a, OffsetSize> Freeze for FilterBytes<'a, OffsetSize>where
OffsetSize: Freeze,
impl<'a, OffsetSize> RefUnwindSafe for FilterBytes<'a, OffsetSize>where
OffsetSize: RefUnwindSafe,
impl<'a, OffsetSize> Send for FilterBytes<'a, OffsetSize>
impl<'a, OffsetSize> Sync for FilterBytes<'a, OffsetSize>where
OffsetSize: Sync,
impl<'a, OffsetSize> Unpin for FilterBytes<'a, OffsetSize>where
OffsetSize: Unpin,
impl<'a, OffsetSize> UnwindSafe for FilterBytes<'a, OffsetSize>where
OffsetSize: UnwindSafe + RefUnwindSafe,
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