2 ms·
I've seen the "..." used for matching a range of values, whereas ".." is used in other places where we disregard a value while patter matching. I'm sure someon
by anuragsoni 10y ago
I've seen the "..." used for matching a range of values, whereas ".." is used in other places where we disregard a value while patter matching.
I'm sure someone from the rust team can give a better answer, but to me this change looks like it was just bringing the pattern matching for structs to be consistent with other uses of ".."
Relevant RFC: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md https://github.com/rust-lang/rfcs/blob/master/text/1492-dotd...