Rust doesn't support `return (condition) ? if_true : if_false;`. This crate exports a macro that implements this feature.
```rust
fn is_ipv4(val: &str) -> i32 {
}
```
If you just want to copy the small macro, here you go 😅
```
macro_rules! ternary {
}
```