pub trait FilterNumber:
Sized
+ Send
+ Sync
+ 'static {
type Value: IntoExpr<Self> + PartialOrd;
// Required method
fn parse(value: &str) -> Option<Self::Value>;
}Expand description
A field type a NumberFilter compares: the integer types up to 64 bits, f32 and f64, and
an Option of one.
The decimal types are left out: SQLite, MySQL and Turso store them as text, which compares
10.00 below 9.50.
Required Associated Types§
Sourcetype Value: IntoExpr<Self> + PartialOrd
type Value: IntoExpr<Self> + PartialOrd
The value the field compares against.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".