Return Position Impl Trait
example 1
#![allow(unused)]
fn main() {
fn apply<F>(f: F)
where
F: Fn(&str),
{
let s = String::from("hello");
f(&s);
}
}
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#![allow(unused)]
fn main() {
fn apply<F>(f: F)
where
F: Fn(&str),
{
let s = String::from("hello");
f(&s);
}
}