turbonone (no_std)
Tiny macro for calling functions with generic Option<T>
arguments.
Usage
Add to your Cargo.toml file:
[]
= "0.*"
The Problem
my_function; // cannot infer type for type parameter `T` declared on the associated function `my_function`
my_function; // Works!
my_box_function; // cannot infer type for type parameter `T` declared on the associated function `my_box_function`
my_box_function; // Works!
my_complex_function; // cannot infer type for type parameter `T` declared on the associated function `my_complex_function`
my_complex_function; // Works!
The Solution
extern crate turbonone;
my_function; // Works!
my_function; // Works!
my_box_function; // Works!
my_box_function; // Works!
my_box_function; // Works!
my_complex_function; // Works!
my_complex_function; // Works!