Skip to main content

parse_value

Function parse_value 

Source
pub fn parse_value(input: &str) -> Result<Vec<u8>, String>
Expand description

Parse a value written by a user: 0x-prefixed hex is decoded to raw bytes, anything else is taken as its UTF-8 bytes. The inverse of Xattr::value_display for round-tripping through an editor.