[][src]Struct red_asn1::Boolean

pub struct Boolean { /* fields omitted */ }

Class to encode/decode Boolean ASN1

Methods

impl Boolean[src]

pub fn value(&self) -> Option<bool>[src]

Trait Implementations

impl Asn1Object for Boolean[src]

fn encode_tag(&self) -> Vec<u8>[src]

To encode the tag to DER, should not be overwritten

fn decode_tag(&self, raw_tag: &[u8]) -> Result<usize>[src]

To decode the tag from DER, should not be overwritten

fn encode_length(&self, value_size: usize) -> Vec<u8>[src]

To encode the object value length to DER, should not be overwritten

fn decode_length(&self, raw_length: &[u8]) -> Result<(usize, usize)>[src]

To decode the object value length from DER, should not be overwritten

fn encode(&self) -> Result<Vec<u8>>[src]

To encode the object to DER, generally does not need to be overwritten. Usually, just encode_value should be overwritten Read more

fn decode(&mut self, raw: &[u8]) -> Result<usize>[src]

To decode the object from DER, generally does not need to be overwritten. Usually, just decode_value should be overwritten Read more

impl Default for Boolean[src]

impl From<bool> for Boolean[src]

impl PartialEq<Boolean> for Boolean[src]

impl Debug for Boolean[src]

Auto Trait Implementations

impl Sync for Boolean

impl Send for Boolean

impl Unpin for Boolean

impl RefUnwindSafe for Boolean

impl UnwindSafe for Boolean

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]