Skip to main content

bytes_from_utf8

Function bytes_from_utf8 

Source
pub fn bytes_from_utf8(s: &str) -> Bytes
Expand description

Convert a UTF-8 string into bytes. Mirrors graph-ts Bytes.fromUTF8().