alpm_mtree::path_decoder

Function bytes_to_string

Source
fn bytes_to_string(
    input: &mut &str,
    checkpoint: Checkpoint<&str, &str>,
    bytes: Vec<u8>,
) -> ModalResult<String>
Expand description

Take the UTF-8 byte sequence and parse it into a String.

ยงErrors

Returns a custom parse error if we encounter an invalid escaped UTF-8 sequence.