pub trait Filter<Selection: ?Sized> {
type Output;
// Required method
fn filter(self, selection: &Selection) -> Self::Output;
}Expand description
Function for filtering based on a selection mask.
Required Associated Types§
Required Methods§
Sourcefn filter(self, selection: &Selection) -> Self::Output
fn filter(self, selection: &Selection) -> Self::Output
Filters an object 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.