Trait Encodable
Source pub trait Encodable {
// Required methods
fn encoded_length(&self) -> Result<Length>;
fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>;
// Provided method
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]> { ... }
}
Expand description
Encoding trait.
Encode into encoder, which essentially is a mutable slice of bytes.
Additionally, the encoded length needs to be known without actually encoding.
Compute the length of this value in bytes when encoded as BER-TLV
Encode this value as BER-TLV using the provided Encoder
.
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.
Encode this value as BER-TLV using the provided Encoder
.