4 stable releases
2.0.1 | Feb 21, 2020 |
---|---|
2.0.0 | Apr 20, 2019 |
1.0.1 | Apr 14, 2019 |
#2000 in Rust patterns
40 downloads per month
12KB
202 lines
improved_slice_patterns
A tiny crate that provides two macros to help matching
on Vec
s and iterators using the syntax of slice_patterns
Changelog
V2.0
match_vec
now returns aResult
instead of anOption
. TheErr
variant is used to return ownership of the passed vec if there was no match.
License
Licensed under either of
- Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions
lib.rs
:
A tiny crate that provides two macros to help matching
on Vec
s and iterators using the syntax of
slice_patterns