Function nu_plugin_from_bencode::from_bytes_to_value

source ·
pub fn from_bytes_to_value(
    input: &[u8],
    head: Span
) -> Result<Value, ShellError>
Expand description

Converts a byte slice into a Value.

§Errors

Returns an error if the input is not valid bencode data.