Function scale_info::prelude::any::request_value
source · 🔬This is a nightly-only experimental API. (
provide_any
)Expand description
Request a value from the Provider
.
Examples
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()
}