pub trait RangeBoundsExt<T: PartialOrd<T> + Add<Output = T> + Sub<Output = T> + Clone + Copy + Send + Sync + 'static + ZeroOne>: RangeBounds<T> {
// Provided methods
fn start(&self) -> Option<T> { ... }
fn end(&self) -> Option<T> { ... }
fn start_with_bound(&self, bound: T) -> T { ... }
fn end_with_bound(&self, bound: T) -> T { ... }
fn bounds(&self, range: Range<T>) -> Range<T> { ... }
fn size(&self) -> Option<T> { ... }
fn is_empty(&self) -> bool { ... }
fn is_full(&self) -> bool { ... }
fn map<F, R>(&self, f: F) -> (Bound<R>, Bound<R>)
where F: Fn(&T) -> R { ... }
}Expand description
The range extensions.
Provided Methods§
Sourcefn start_with_bound(&self, bound: T) -> T
fn start_with_bound(&self, bound: T) -> T
Get the start bound with a default value of the range.
Sourcefn end_with_bound(&self, bound: T) -> T
fn end_with_bound(&self, bound: T) -> T
Get the end bound with a default value of the range.
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.