Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust string from bytes

String::from_utf8_lossy(&[u8]) -> Cow<'_, str>

Basically

let x: &str = &String::from_utf8_lossy(&[1, 7, 4, 32, 69]);
 
PREVIOUS NEXT
Tagged: #rust #string #bytes
ADD COMMENT
Topic
Name
7+6 =