[][src]Struct asn1_der::typed::SequenceVec

pub struct SequenceVec<T>(pub Vec<T>);

A newtype wrapper around Vec to work with sequences in a Vec-like way

Note: We use a newtype wrapper here because Rust's generic type system does not allow specializations, so a direct implementation for Vec<T> would conflict with other implementations; e.g. the octet string implementation for Vec<u8>

Trait Implementations

impl<'a, T: DerDecodable<'a>> DerDecodable<'a> for SequenceVec<T>[src]

impl<T: DerEncodable> DerEncodable for SequenceVec<T>[src]

impl<T> Deref for SequenceVec<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T> DerefMut for SequenceVec<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SequenceVec<T> where
    T: RefUnwindSafe

impl<T> Send for SequenceVec<T> where
    T: Send

impl<T> Sync for SequenceVec<T> where
    T: Sync

impl<T> Unpin for SequenceVec<T> where
    T: Unpin

impl<T> UnwindSafe for SequenceVec<T> where
    T: UnwindSafe

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, 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.