Corelib
start..end
start = end
#[derive(Clone, Drop, PartialEq)] pub struct Range { pub start: T, pub end: T, }
Range
assert!((3..5) == core::ops::Range { start: 3, end: 5 }); let mut sum = 0; for i in 3..6 { sum += i; } assert!(sum == 3 + 4 + 5);
pub start: T
pub end: T
Was this page helpful?