Trait foyer_common::range::RangeBoundsExt
source · 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.
Object Safety§
This trait is not object safe.