[−][src]Macro overloadable::overloadable
overloadable!() { /* proc-macro */ }
Overloadable function macro. Please read the top level documentation for this crate for more information on this.
Example:
overloadable::overloadable! { my_func as fn(x: usize) -> usize { x * 2 }, fn(x: &str) -> usize { x.len() }, fn<T: Debug>(x: T, y: T) -> String where T: Display { format!("{:?}, {}", x, y) }, fn<T: Debug + Display>((x, y): (T, T)) -> String { my_func(x, y) }, }