[][src]Struct der::sequence::Sequence

pub struct Sequence<'a> { /* fields omitted */ }

ASN.1 SEQUENCE type.

Implementations

impl<'a> Sequence<'a>[src]

pub fn new(slice: &'a [u8]) -> Result<Self>[src]

Create a new Sequence from a slice

pub fn as_bytes(&self) -> &'a [u8][src]

Borrow the inner byte sequence

pub fn decode_nested<F, T>(&self, f: F) -> Result<T> where
    F: FnOnce(&mut Decoder<'a>) -> Result<T>, 
[src]

Decode values nested within a sequence, creating a new Decoder for the data contained in the sequence's body and passing it to the provided FnOnce.

Trait Implementations

impl<'_> AsRef<[u8]> for Sequence<'_>[src]

impl<'a> Clone for Sequence<'a>[src]

impl<'a> Copy for Sequence<'a>[src]

impl<'a> Debug for Sequence<'a>[src]

impl<'a> Encodable for Sequence<'a>[src]

impl<'a> Eq for Sequence<'a>[src]

impl<'a> From<Sequence<'a>> for Any<'a>[src]

impl<'a> PartialEq<Sequence<'a>> for Sequence<'a>[src]

impl<'a> StructuralEq for Sequence<'a>[src]

impl<'a> StructuralPartialEq for Sequence<'a>[src]

impl<'a> Tagged for Sequence<'a>[src]

impl<'a> TryFrom<Any<'a>> for Sequence<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Sequence<'a>[src]

impl<'a> Send for Sequence<'a>[src]

impl<'a> Sync for Sequence<'a>[src]

impl<'a> Unpin for Sequence<'a>[src]

impl<'a> UnwindSafe for Sequence<'a>[src]

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.