start..end).
The range start..end contains all values with start = end.
Signature
Examples
Thestart..end syntax is a Range:
start..end).
The range start..end contains all values with start = end.
#[derive(Clone, Drop, PartialEq)]
pub struct Range {
pub start: T,
pub end: T,
}
start..end syntax is a 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?