Get the [`Header`] used to encode this value.
(&self)
| 117 | pub trait EncodeValue { |
| 118 | /// Get the [`Header`] used to encode this value. |
| 119 | fn header(&self) -> Result<Header> |
| 120 | where |
| 121 | Self: Tagged, |
| 122 | { |
| 123 | Header::new(self.tag(), self.value_len()?) |
| 124 | } |
| 125 | |
| 126 | /// Compute the length of this value (sans [`Tag`]+[`Length`] header) when |
| 127 | /// encoded as ASN.1 DER. |
no test coverage detected