[]Struct dasn1::types::enumerated::Enumerated

pub struct Enumerated<E>(_)
where
    E: Enumerable
;

A representation of the ENUMERATED ASN.1 data type. Enumerated should be a wrapper around an enum with no inner data. Using Enumerated will produce the ENUMERATED encoding where as using enums directly will produce the CHOICE encoding.

Methods

impl<E> Enumerated<E> where
    E: Enumerable

pub fn new(enumerable: E) -> Enumerated<E>

Instantiate a new instance of Enumerated with an Enumerable variant.

pub fn into_inner(self) -> E

Consumes self and returns the inner Enumerable variant from an instance of Enumerated.

Trait Implementations

impl<E> PartialEq<Enumerated<E>> for Enumerated<E> where
    E: Enumerable + PartialEq<E>, 

impl<E> AsMut<E> for Enumerated<E> where
    E: Enumerable

impl<E> Debug for Enumerated<E> where
    E: Enumerable + Debug

impl<E> AsRef<E> for Enumerated<E> where
    E: Enumerable

impl<E> Copy for Enumerated<E> where
    E: Enumerable + Copy

impl<E> Serialize for Enumerated<E> where
    E: Enumerable + Serialize

impl<'de, E> Deserialize<'de> for Enumerated<E> where
    E: Enumerable + Deserialize<'de>, 

impl<E> Clone for Enumerated<E> where
    E: Enumerable + Clone

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<E> Eq for Enumerated<E> where
    E: Enumerable + Eq

Auto Trait Implementations

impl<E> Sync for Enumerated<E> where
    E: Sync

impl<E> Unpin for Enumerated<E> where
    E: Unpin

impl<E> Send for Enumerated<E> where
    E: Send

impl<E> UnwindSafe for Enumerated<E> where
    E: UnwindSafe

impl<E> RefUnwindSafe for Enumerated<E> where
    E: RefUnwindSafe

Blanket Implementations

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> From<T> for 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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]