Function phragmms_balancing::common::to_range [−][src]
pub fn to_range(x: usize, a: usize, b: usize) -> usize
Expand description
converts x into the range [a, b] in a pseudo-fair way.
pub fn to_range(x: usize, a: usize, b: usize) -> usize
converts x into the range [a, b] in a pseudo-fair way.