pub trait Print { // Required methods fn print(&self); fn eprint(&self); fn println(&self); fn eprintln(&self); }
let get = async move |url:&str|url.to_string().print();
let get = async move |url:&str|url.to_string().eprint();
let get = async move |url:&str|url.to_string().println();
let get = async move |url:&str|url.to_string().eprintln();