Enum asn1_der::DerTag [−][src]
A wrapper around a DER tag that is DER-(de-)serializable
Variants
Implementations
impl DerTag
[src]
pub fn deserialize<'a>(
source: impl Iterator<Item = &'a u8>
) -> Result<Self, Asn1DerError>
[src]
source: impl Iterator<Item = &'a u8>
) -> Result<Self, Asn1DerError>
DER-deserializes a tag from source
pub fn serialized_len(&self) -> usize
[src]
The length of the DER-serialized representation of self
pub fn serialize<'a>(
&self,
buf: impl Iterator<Item = &'a mut u8>
) -> Result<usize, Asn1DerError>
[src]
&self,
buf: impl Iterator<Item = &'a mut u8>
) -> Result<usize, Asn1DerError>
DER-serializes self
into buf
and returns the amount of bytes written
pub fn compute_serialized_len() -> usize
[src]
Efficiently computes the length of the DER-serialized representation of a tag
Trait Implementations
impl Clone for DerTag
[src]
impl Copy for DerTag
[src]
impl Debug for DerTag
[src]
impl Eq for DerTag
[src]
impl From<DerTag> for u8
[src]
impl From<u8> for DerTag
[src]
impl PartialEq<DerTag> for DerTag
[src]
impl StructuralEq for DerTag
[src]
impl StructuralPartialEq for DerTag
[src]
Auto Trait Implementations
impl RefUnwindSafe for DerTag
impl Send for DerTag
impl Sync for DerTag
impl Unpin for DerTag
impl UnwindSafe for DerTag
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> 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>,