pub fn escape_into<T: Into<OsString>>(s: T, sout: &mut Vec<u8>)
Escape a string of bytes into an existing Vec<u8>.
Vec<u8>
See escape for more details.
escape
let mut buf = Vec::with_capacity(128); sh::escape_into("foobar", &mut buf); buf.push(b' '); // Add a space. sh::escape_into("foo bar", &mut buf); assert_eq!(buf, b"foobar 'foo bar'");