Trait ethers::core::k256::elliptic_curve::pkcs8::der::Encodable[][src]

pub trait Encodable {
    fn encoded_len(&self) -> Result<Length, Error>;
fn encode(&self, encoder: &mut Encoder<'_>) -> Result<(), Error>; fn encode_to_slice(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error> { ... } }
Expand description

Encoding trait.

Required methods

Compute the length of this value in bytes when encoded as ASN.1 DER.

Encode this value as ASN.1 DER using the provided Encoder.

Provided methods

Encode this value to the provided byte slice, returning a sub-slice containing the encoded message.

Implementations on Foreign Types

Implementors