Skip to main content

redecode

Function redecode 

Source
pub fn redecode<T: for<'a> Facet<'a>>(
    value: &Value,
) -> Result<T, DeserializeError>
Expand description

Round-trip value through JSON into T.

§Errors

Returns an error when T cannot represent what value holds.

§Panics

Never in practice: every [Value] this crate builds encodes as JSON.