This story was originally published on HackerNoon at:
https://hackernoon.com/rust-1800-exclusive-ranges-in-patterns-stabilized-apis-and-more.
Rust ranged patterns can now use exclusive endpoints, written a..b or ..b similar to the Range and RangeTo expression types.
Check more stories related to programming at:
https://hackernoon.com/c/programming.
You can also check exclusive content about
#rust,
#rustlang,
#rust-1.80.0,
#api,
#stabilized-apis,
#rust-update,
#rust-changes,
#exclusive-ranges-in-patterns, and more.
This story was written by:
@Rust. Learn more about this writer by checking
@Rust's about page,
and for more stories, please visit
hackernoon.com.
Rust ranged patterns can now use exclusive endpoints, written a..b or ..b similar to the Range and RangeTo expression types.