pub fn request_value<'a, T, P>(provider: &'a P) -> Option<T> where T: 'static, P: Provider + ?Sized,
provide_any
Request a value from the Provider.
Provider
Get a string value from a provider.
use std::any::{Provider, request_value}; fn get_string<P: Provider>(provider: &P) -> String { request_value::<String, _>(provider).unwrap() }