Filter

Trait Filter 

Source
pub trait Filter<By: ?Sized> {
    type Output;

    // Required method
    fn filter(self, selection: &By) -> Self::Output;
}
Expand description

Function for filtering based on a selection mask.

Required Associated Types§

Source

type Output

The result type after performing the operation.

Required Methods§

Source

fn filter(self, selection: &By) -> Self::Output

Filters the vector using the provided mask, returning a new value.

The result value will have length equal to the true count of the provided mask.

§Panics

If the length of the mask does not equal the length of the value being filtered.

Implementations on Foreign Types§

Source§

impl Filter<Mask> for &Mask

Source§

type Output = Mask

Source§

fn filter(self, selection_mask: &Mask) -> Mask

Source§

impl Filter<Mask> for &DecimalVector

Source§

type Output = DecimalVector

Source§

fn filter(self, selection: &Mask) -> Self::Output

Source§

impl Filter<Mask> for &PrimitiveVector

Source§

impl Filter<Mask> for &Vector

Source§

type Output = Vector

Source§

fn filter(self, selection: &Mask) -> Self::Output

Source§

impl Filter<Mask> for &BitBuffer

Source§

type Output = BitBuffer

Source§

fn filter(self, selection_mask: &Mask) -> BitBuffer

Source§

impl Filter<Mask> for &FixedSizeListVector

Source§

type Output = FixedSizeListVector

Source§

fn filter(self, _selection: &Mask) -> Self::Output

Source§

impl Filter<Mask> for &NullVector

Source§

type Output = NullVector

Source§

fn filter(self, selection: &Mask) -> Self::Output

Source§

impl Filter<Mask> for &mut DecimalVectorMut

Source§

type Output = ()

Source§

fn filter(self, selection: &Mask) -> Self::Output

Source§

impl Filter<Mask> for &mut PrimitiveVectorMut

Source§

type Output = ()

Source§

fn filter(self, selection_mask: &Mask)

Source§

impl Filter<Mask> for &mut VectorMut

Source§

type Output = ()

Source§

fn filter(self, selection_mask: &Mask)

Source§

impl Filter<Mask> for &mut MaskMut

Source§

type Output = ()

Source§

fn filter(self, selection_mask: &Mask)

Source§

impl Filter<Mask> for &mut FixedSizeListVectorMut

Source§

type Output = ()

Source§

fn filter(self, _selection: &Mask) -> Self::Output

Source§

impl Filter<Mask> for &mut NullVectorMut

Source§

type Output = ()

Source§

fn filter(self, selection: &Mask) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &Mask

Source§

type Output = Mask

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Mask

Source§

impl Filter<MaskIndices<'_>> for &DecimalVector

Source§

type Output = DecimalVector

Source§

fn filter(self, selection: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &PrimitiveVector

Source§

type Output = PrimitiveVector

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &Vector

Source§

type Output = Vector

Source§

fn filter(self, selection: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &BitBuffer

Source§

impl Filter<MaskIndices<'_>> for &FixedSizeListVector

Source§

type Output = FixedSizeListVector

Source§

fn filter(self, _selection: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &NullVector

Source§

type Output = NullVector

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &mut DecimalVectorMut

Source§

type Output = ()

Source§

fn filter(self, selection: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &mut PrimitiveVectorMut

Source§

type Output = ()

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &mut VectorMut

Source§

type Output = ()

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &mut MaskMut

Source§

type Output = ()

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &mut FixedSizeListVectorMut

Source§

type Output = ()

Source§

fn filter(self, _selection: &MaskIndices<'_>) -> Self::Output

Source§

impl Filter<MaskIndices<'_>> for &mut NullVectorMut

Source§

type Output = ()

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Self::Output

Source§

impl<M> Filter<M> for &BoolVector
where for<'a> &'a BitBuffer: Filter<M, Output = BitBuffer>, for<'a> &'a Mask: Filter<M, Output = Mask>,

Source§

type Output = BoolVector

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M> Filter<M> for &ListViewVector
where for<'a> &'a PrimitiveVector: Filter<M, Output = PrimitiveVector>, for<'a> &'a Mask: Filter<M, Output = Mask>,

Source§

type Output = ListViewVector

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M> Filter<M> for &StructVector
where for<'a> &'a Vector: Filter<M, Output = Vector>, for<'a> &'a Mask: Filter<M, Output = Mask>,

Source§

type Output = StructVector

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M> Filter<M> for &mut BoolVectorMut
where for<'a> &'a BitBuffer: Filter<M, Output = BitBuffer>, for<'a> &'a mut MaskMut: Filter<M, Output = ()>,

Source§

type Output = ()

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M> Filter<M> for &mut ListViewVectorMut
where for<'a> &'a mut PrimitiveVectorMut: Filter<M, Output = ()>, for<'a> &'a mut MaskMut: Filter<M, Output = ()>,

Source§

type Output = ()

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M> Filter<M> for &mut StructVectorMut
where for<'a> &'a mut VectorMut: Filter<M, Output = ()>, for<'a> &'a mut MaskMut: Filter<M, Output = ()>,

Source§

type Output = ()

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M, D: NativeDecimalType> Filter<M> for &DVector<D>
where for<'a> &'a Buffer<D>: Filter<M, Output = Buffer<D>>, for<'a> &'a Mask: Filter<M, Output = Mask>,

Source§

type Output = DVector<D>

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M, D: NativeDecimalType> Filter<M> for &mut DVectorMut<D>
where for<'a> &'a mut BufferMut<D>: Filter<M, Output = ()>, for<'a> &'a mut MaskMut: Filter<M, Output = ()>,

Source§

type Output = ()

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M, T: Copy> Filter<M> for Buffer<T>
where for<'a> &'a Buffer<T>: Filter<M, Output = Buffer<T>>, for<'a> &'a mut BufferMut<T>: Filter<M, Output = ()>,

Source§

type Output = Buffer<T>

Source§

fn filter(self, selection_mask: &M) -> Self

Source§

impl<M, T: NativePType> Filter<M> for &PVector<T>
where for<'a> &'a Buffer<T>: Filter<M, Output = Buffer<T>>, for<'a> &'a Mask: Filter<M, Output = Mask>,

Source§

type Output = PVector<T>

Source§

fn filter(self, selection_mask: &M) -> PVector<T>

Source§

impl<M, T: NativePType> Filter<M> for &mut PVectorMut<T>
where for<'a> &'a mut BufferMut<T>: Filter<M, Output = ()>, for<'a> &'a mut MaskMut: Filter<M, Output = ()>,

Source§

type Output = ()

Source§

fn filter(self, selection_mask: &M)

Source§

impl<M, T: NativePType> Filter<M> for PVector<T>
where for<'a> &'a PVector<T>: Filter<M, Output = PVector<T>>, for<'a> &'a mut PVectorMut<T>: Filter<M, Output = ()>,

Source§

type Output = PVector<T>

Source§

fn filter(self, selection_mask: &M) -> Self

Source§

impl<M, T: BinaryViewType> Filter<M> for &BinaryViewVector<T>
where for<'a> &'a Mask: Filter<M, Output = Mask>, for<'a> &'a Buffer<BinaryView>: Filter<M, Output = Buffer<BinaryView>>,

Source§

type Output = BinaryViewVector<T>

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<M, T: BinaryViewType> Filter<M> for &mut BinaryViewVectorMut<T>
where for<'a> &'a mut MaskMut: Filter<M, Output = ()>, for<'a> &'a mut BufferMut<BinaryView>: Filter<M, Output = ()>,

Source§

type Output = ()

Source§

fn filter(self, selection: &M) -> Self::Output

Source§

impl<T: Copy> Filter<Mask> for &Buffer<T>

Source§

type Output = Buffer<T>

Source§

fn filter(self, selection_mask: &Mask) -> Buffer<T>

Source§

impl<T: Copy> Filter<Mask> for &mut BufferMut<T>

Source§

type Output = ()

Source§

fn filter(self, selection_mask: &Mask)

Source§

impl<T: Copy> Filter<MaskIndices<'_>> for &Buffer<T>

Source§

type Output = Buffer<T>

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Buffer<T>

Source§

impl<T: Copy> Filter<MaskIndices<'_>> for &mut BufferMut<T>

Source§

type Output = ()

Source§

fn filter(self, indices: &MaskIndices<'_>) -> Self::Output

Implementors§