check-ends-macro 1.0.1

A couple of macros to simulate match with starts and ends of a string.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Use
It's like a match, but it returns an Option

```rust
let to_match = "hello world";

let opt = match_start!{to_match,
    "hello" | "something" => "something else"
    "world" | "another" => "another thing"
};

if let Some(value) = opt {
    println!("{}", value); // Will print "hello world"
}
```