Expand description
Convert strings to and from IBM-1047.
use ibm1047::Encode;
// Warning: flatten will discard characters that cannot be encoded as IBM-1047.
let ebcdic: Vec<u8> = "Hello, World!\n".encode_ibm1047().flatten().collect();
let string: String = ibm1047::decode(&ebcdic).collect();
assert_eq!(string, "Hello, World!\n");