Function pem::encode_config
source · pub fn encode_config(pem: &Pem, config: EncodeConfig) -> String
Expand description
Encode a PEM struct into a PEM-encoded data string with additional configuration options
§Example
use pem::{Pem, encode_config, EncodeConfig, LineEnding};
let pem = Pem::new("FOO", [1, 2, 3, 4]);
encode_config(&pem, EncodeConfig::new().set_line_ending(LineEnding::LF));