Lines Matching full:string
59 /// fn call_it<F: for<'a> FnCall<(&'a str,), String>>(_f: &F, s: &str) -> String {
63 /// let s: String = call_it(&str::to_owned, "hello world");
75 /// # fn call_it<'a, F: FnCall<(&'a str,), String>>(_f: &F, s: &'a str) -> String {
79 /// call_it(&move |_| String::from(x), "hello workd");
86 /// fn optional<F: for<'a> FnCall<(&'a str,), String>>(_f: &F, s: &str) -> Option<String> {
101 /// # fn call_it<F: for<'a> FnCall<(&'a str,), String>>(_f: &F, s: &str) -> String {
104 /// let s: String = call_it(&(), "hello world"); // panics
129 /// fn call_it<F: for<'a> FnCall<(&'a str,), String>>(_f: &F, s: &str) -> String {
134 /// let s: String = call_it((), "hello world"); // does not compile
149 /// fn call_it<F: for<'a> FnCall<(&'a str,), String>>(_f: &F, s: &str) -> String {
154 /// let s: String = call_it((), "hello world"); // does not compile
223 fn do_test_call<'a, F: FnCall<(&'a str,), String>>(_f: &F) -> String { in do_test_call() argument
233 fn do_test_is_some<'a, F: FnCall<(&'a str,), String>>(_f: &F) { in do_test_is_some()