pub trait RangeOpwhere
Self: Sized,{
type Step;
// Required methods
fn add_clamp(self, delta: Self::Step, bounds: (Self, Self)) -> Self;
fn sub_clamp(self, delta: Self::Step, bounds: (Self, Self)) -> Self;
}Expand description
Bounded numeric operations.
Useful for taking steps within a range.
When used with a reversed range it steps in the reversed direction.
Required Associated Types§
Required Methods§
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.