pub struct PrefixFilter<Tuple, Func: Fn(&Tuple) -> bool> { /* private fields */ }
Expand description
A treefrog leaper that tests each of the tuples from the main
input (the “prefix”). Use like PrefixFilter::from(|tuple| ...)
; if the closure returns true, then the tuple is
retained, else it will be ignored. This leaper can be used in
isolation in which case it just acts like a filter on the
input (the “proposed value” will be ()
type).
Creates a new filter based on the prefix
Estimates the number of proposed values.
Populates values
with proposed values.
Restricts values
to proposed values.
Internal method:
Internal method:
Internal method:
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.