Trait ehttpd_range::rangeext::RangeExt
source · 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