from_bytes_to_value

Function 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.