[][src]Function bt_bencode::value::from_value

pub fn from_value<T>(value: Value) -> Result<T, Error> where
    T: DeserializeOwned

Deserializes an instance of T from a Value.

Errors

Deserialization can fail if the data is not valid, if the data cannot cannot be deserialized into an instance of T, and other IO errors.