pub struct Boolean<'a> { /* private fields */ }
Expand description
An ASN.1-DER boolean type view
Implementations§
Trait Implementations§
source§impl<'a> DerDecodable<'a> for Boolean<'a>
impl<'a> DerDecodable<'a> for Boolean<'a>
source§fn decode_at(raw: &'a [u8], header_start: usize) -> Result<Self, Asn1DerError>
fn decode_at(raw: &'a [u8], header_start: usize) -> Result<Self, Asn1DerError>
Decodes an object as
Self
source§fn decode_from_source<A: Source, B: Sink + Into<&'a [u8]>>(
source: &mut A,
sink: B
) -> Result<Self, Asn1DerError>
fn decode_from_source<A: Source, B: Sink + Into<&'a [u8]>>( source: &mut A, sink: B ) -> Result<Self, Asn1DerError>
Reads an object from
source
by parsing the length field and copying the necessary bytes
into sink
and decoding it from sink