Skip to main content

range_bounds_to_values

Function range_bounds_to_values 

Source
pub fn range_bounds_to_values<T, V>(
    range: &impl RangeBounds<T>,
    rebound: &V,
    cmp: &impl IncDecCpCmp<T, V>,
) -> Option<(T, T)>
Expand description

Range to value Conversion

This method takes a std::ops::RangeBounds and returns the calculted values for the type.

For conversion of start values

For conversion of end values

See IncDecCpCmp for more details.

Example of range to number conversion.