Function pem::encode_many
source · pub fn encode_many(pems: &[Pem]) -> String
Expand description
Encode multiple PEM structs into a PEM-encoded data string
Example
use pem::{Pem, encode_many};
let data = vec![
Pem::new("FOO", [1, 2, 3, 4]),
Pem::new("BAR", [5, 6, 7, 8]),
];
encode_many(&data);