[][src]Function picky::pem::read_pem

pub fn read_pem(reader: &mut impl BufRead) -> Result<Pem<'static>, PemError>

Parse a PEM-encoded stream from a BufRead object.

Maybe slower than the AsRef<u8>-based implementation because additional copies are incurred, but in most cases it's probably easier to work with and not that bad anyway.