pub struct ValueFilter<Tuple, Val, Func: Fn(&Tuple, &Val) -> bool> { /* private fields */ }
Expand description
A treefrog leaper based on a predicate of prefix and value.
Use like ValueFilter::from(|tuple, value| ...)
. The closure
should return true if value
ought to be retained. The
value
will be a value proposed elsewhere by an extend_with
leaper.
This leaper cannot be used in isolation, it must be combined
with other leapers.
Creates a new filter based on the prefix
Estimates the number of proposed values.
Populates values
with proposed values.
Restricts values
to proposed values.
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.