MCPcopy Create free account
hub / github.com/RustCrypto/formats / to_vec

Method to_vec

der/src/encode.rs:64–68  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

62 #[cfg(feature = "alloc")]
63 #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
64 fn to_vec(&self) -> Result<Vec<u8>> {
65 let mut buf = Vec::new();
66 self.encode_to_vec(&mut buf)?;
67 Ok(buf)
68 }
69}
70
71impl<T> Encode for T

Callers

nothing calls this directly

Implementers 12

version.rspkcs8/src/version.rs
version.rspkcs1/src/version.rs
document.rsder/src/document.rs
tag.rsder/src/tag.rs
header.rsder/src/header.rs
encode_ref.rsder/src/encode_ref.rs
length.rsder/src/length.rs
encode.rsder/src/encode.rs
optional.rsder/src/asn1/optional.rs
pbes2.rspkcs5/src/pbes2.rs
pbes1.rspkcs5/src/pbes1.rs
kdf.rspkcs5/src/pbes2/kdf.rs

Calls 1

encode_to_vecMethod · 0.80

Tested by

no test coverage detected