pub fn encode_lines(data: &[u8]) -> StringExpand description
data in base64 in lines of 76 characters, each ending with a newline
(Python’s base64.encodebytes, MIME style).
let text = pltrs_codec::base64::encode_lines(&[0; 60]);
assert_eq!(text.lines().map(str::len).collect::<Vec<_>>(), [76, 4]);
assert!(text.ends_with('\n'));