crates.io docs.rs license

turbonone (no_std)

Tiny macro for calling functions with generic Option<T> arguments.

The Problem

```rust fn my_function(arg: Option) -> &'static str { "Works!" }

myfunction(None); // cannot infer type for type parameter T declared on the associated function my_function myfunction(Some("An argument")); // Works! ```

The Solution

```rust // Rust 2015

[macro_use] extern crate turbonone;

// Rust 2018 use turbonone::turbonone;

fn my_function(arg: Option) -> &'static str { "Works!" }

myfunction(turbonone!()); // Works! myfunction(Some("An argument")); // Works! ```