pub trait NumericDefaultRange {
// Required methods
fn default_min() -> Self;
fn default_max() -> Self;
}Expand description
Trait providing a default numeric range for slider widgets when no explicit
min/max are given.
This mirrors the behavior of the C++ ImReflect library, which uses a “half-range” of the underlying numeric limits to avoid Dear ImGui’s internal range restrictions for very large values.
Required Methods§
Sourcefn default_min() -> Self
fn default_min() -> Self
Default minimum value for this numeric type.
Sourcefn default_max() -> Self
fn default_max() -> Self
Default maximum value for this numeric type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.