pub trait RangeExt<T>where
Self: Sized,{
// Required method
fn from_range_bounds<B>(bounds: B, min_incl: T, max_excl: T) -> Option<Self>
where B: RangeBounds<T>;
}Expand description
An extension trait for ranges
Required Methods§
Sourcefn from_range_bounds<B>(bounds: B, min_incl: T, max_excl: T) -> Option<Self>where
B: RangeBounds<T>,
fn from_range_bounds<B>(bounds: B, min_incl: T, max_excl: T) -> Option<Self>where
B: RangeBounds<T>,
Creates Self from the given range bounds and validates that it is within min_incl and max_excl
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.