rich_range 0.1.0

Range calculation helper.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Shorthand for [`RangeView`].

use crate::*;
use core::ops::RangeBounds;

/// Returns a new [`RangeView`] from range bounds.
pub fn new<R, T>(range: &R) -> RangeView<'_, R, T>
where
    R: ?Sized + RangeBounds<T>,
    T: ?Sized,
{
    RangeView::new(range)
}