pub fn request_value<T, 'a>(provider: &'a impl Provider) -> Option<T>where T: 'static,
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(provider: &impl Provider) -> String { request_value::<String>(provider).unwrap() }