AsRawBytes

Trait AsRawBytes 

Source
pub trait AsRawBytes<T> {
    // Required method
    fn as_raw_bytes(&self) -> Result<T, Unspecified>;
}
Expand description

Trait for values that can be serialized into a raw format

Required Methods§

Source

fn as_raw_bytes(&self) -> Result<T, Unspecified>

Serializes into a raw format.

§Errors

Returns Unspecified if serialization fails.

Implementors§

Source§

impl AsRawBytes<PqdsaPrivateKeyRaw<'static>> for PqdsaPrivateKey<'_>

Available on crate feature unstable and non-crate feature fips only.