scalar
ModuleBooleans, integers, floats, numbers and numeric ranges.
Contents
Structs
BooleanA boolean; when loose, also `"true"`, `"false"`, `"1"`, `"0"`, `1` and `0`.FloatA float or an integer; when loose, also a numeric string.IntegerAn integer of `bits` bits (8, 16, 32 or 64), signed or unsigned; when loose, also a numeric string.NumericA number, or a string that spells one.RangeA number between a minimum and a maximum, inclusive, in the `Type::Integer` or `Type::Float` format; any other format rejects every value.use utopia_validators::Boolean;Rust
pub struct BooleanA boolean; when loose, also "true", "false", "1", "0", 1 and 0.
use utopia_validators::Float;Rust
pub struct FloatA float or an integer; when loose, also a numeric string.
use utopia_validators::Integer;Rust
pub struct IntegerAn integer of bits bits (8, 16, 32 or 64), signed or unsigned; when
loose, also a numeric string.
Also implements
Default.use utopia_validators::Numeric;Rust
pub struct NumericA number, or a string that spells one.
use utopia_validators::Range;Rust
pub struct RangeA number between a minimum and a maximum, inclusive, in the
Type::Integer or Type::Float format; any other format rejects every
value.