Struct der::Header [−][src]
ASN.1 DER headers: tag + length component of TLV-encoded values
Fields
tag: TagTag representing the type of the encoded value
length: LengthLength of the encoded value
Implementations
impl Header[src]
Trait Implementations
impl Clone for Header[src]
impl Copy for Header[src]
impl Debug for Header[src]
impl Decodable<'_> for Header[src]
fn decode(decoder: &mut Decoder<'_>) -> Result<Header>[src]
fn from_der(bytes: &'a [u8]) -> Result<Self>[src]
impl Encodable for Header[src]
fn encoded_len(&self) -> Result<Length>[src]
fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>[src]
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>[src]
fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length>[src]
fn to_vec(&self) -> Result<Vec<u8>>[src]
impl Eq for Header[src]
impl PartialEq<Header> for Header[src]
impl StructuralEq for Header[src]
impl StructuralPartialEq for Header[src]
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,