pub trait EncodeValue {
// Required methods
fn value_len(&self) -> Result<Length>;
fn encode_value(&self, encoder: &mut dyn Writer) -> Result<()>;
// Provided method
fn header(&self) -> Result<Header>
where Self: Tagged { ... }
}
Expand description
Encode the value part of a Tag-Length-Value encoded field, sans the Tag
and Length
.
Compute the length of this value (sans Tag
+Length
header) when
encoded as ASN.1 DER.
Encode value (sans Tag
+Length
header) as ASN.1 DER using the
provided Writer
.
Get the Header
used to encode this value.