[−][src]Struct red_asn1::Boolean
Class to encode/decode Boolean ASN1
Methods
impl Boolean
[src]
Trait Implementations
impl Asn1Object for Boolean
[src]
fn tag(&self) -> Tag
[src]
fn encode_value(&self) -> Result<Vec<u8>>
[src]
fn decode_value(&mut self, raw: &[u8]) -> Result<()>
[src]
fn unset_value(&mut self)
[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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,