encode

Function encode 

Source
pub fn encode(enc: CharEncoding, input: &str) -> Result<Vec<u8>>
Expand description

Encodes a Unicode string using the specified character encoding.