pub struct NumberFilter<M> { /* private fields */ }Expand description
Number filter matching a number field exactly, or between two bounds; see FilterNumber
for the types.
A value names one number, f.<name>=42; on a range filter the parts
f.<name>.min and f.<name>.max bound it, both ends included, either one alone leaving it
open. A record whose optional field holds nothing matches no bound.
NumberFilter::new(lens!(Book.pages)).range();Implementations§
Trait Implementations§
Source§impl<M> Clone for NumberFilter<M>
impl<M> Clone for NumberFilter<M>
Source§impl<M> Debug for NumberFilter<M>
impl<M> Debug for NumberFilter<M>
Source§impl<M> Filter<M> for NumberFilter<M>
impl<M> Filter<M> for NumberFilter<M>
Source§fn to_expr(&self, _cx: &Cx, value: &FilterValue) -> Option<Expr<bool>>
fn to_expr(&self, _cx: &Cx, value: &FilterValue) -> Option<Expr<bool>>
The exact value, or the range its min and max parts bound; None for a value the type
refuses, another part, a value beside the parts, a min above the max, or a part where
range is off, whose one input does not render it.
Source§fn control<'a>(&self, cx: &'a Cx, input: FilterInput) -> BoxView<'a>
fn control<'a>(&self, cx: &'a Cx, input: FilterInput) -> BoxView<'a>
A number input, or two for a range.
Source§fn is_noop_value(&self, _value: &FilterValue) -> bool
fn is_noop_value(&self, _value: &FilterValue) -> bool
Whether
value selects no predicate without being invalid.Source§fn load_control<'s, 'a: 's>(
&'s self,
cx: &'a Cx,
input: FilterInput,
) -> ControlFuture<'s, 'a>
fn load_control<'s, 'a: 's>( &'s self, cx: &'a Cx, input: FilterInput, ) -> ControlFuture<'s, 'a>
The control in the filter menu once what it offers has loaded, such as rows a query
returns. The filter menu renders this one; it defaults to
control.impl<M> IntoFilters<M> for NumberFilter<M>
Auto Trait Implementations§
impl<M> !RefUnwindSafe for NumberFilter<M>
impl<M> !UnwindSafe for NumberFilter<M>
impl<M> Freeze for NumberFilter<M>
impl<M> Send for NumberFilter<M>
impl<M> Sync for NumberFilter<M>
impl<M> Unpin for NumberFilter<M>
impl<M> UnsafeUnpin for NumberFilter<M>
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