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
source§impl<'a> DerEncodable for Boolean<'a>
impl<'a> DerEncodable for Boolean<'a>
source§impl<'a> DerTypeView<'a> for Boolean<'a>
impl<'a> DerTypeView<'a> for Boolean<'a>
impl<'a> Copy for Boolean<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Boolean<'a>
impl<'a> Send for Boolean<'a>
impl<'a> Sync for Boolean<'a>
impl<'a> Unpin for Boolean<'a>
impl<'a> UnwindSafe for Boolean<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more