Skip to main content

from_value

Function from_value 

Source
pub fn from_value<T: Facet<'static>>(
    cx: &dyn ConvertCx,
    value: &Value,
) -> RunResult<T>
Expand description

Converts a Xur value to a Rust value of type T, failing with a runtime error if the value doesn’t fit.