Function text_analysis::get_index_min
source · pub fn get_index_min(index: &usize) -> usize
Expand description
Get mininum index and guarantee that index is alway >=0
§Example
#[test]
fn test() {
use text_analysiss::get_index_min;
let index1 = 5;
let min_index1 = get_index_min(&index1).unwrap();
assert_eq!(min_index1, 0);
}