3 ms·
The range doesn't have values. A range defined by Rust has a start point and an end point, and no other semantics. Some additional functions then add behavior i
by kibwen 6y ago
The range doesn't have values. A range defined by Rust has a start point and an end point, and no other semantics. Some additional functions then add behavior if the types contained in the range can be compared via greater-than, etc. Vecs in Rust can be compared if their contents can be compared. For a range of two vecs, foo and bar, to ask if a third vec is "contained" in that range is to ask if it compares greater than foo and less than bar.
- andy_ppp 6y agoOkay thanks for the explanation!