[][src]Struct dasn1_core::types::enumerated::Enumerated

pub struct Enumerated<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: Enumerable> Enumerated<E>[src]

pub fn new(enumerable: E) -> Self[src]

Instantiate a new instance of Enumerated with an Enumerable variant.

pub fn into_inner(self) -> E[src]

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

Trait Implementations

impl<E: Clone + Enumerable> Clone for Enumerated<E>[src]

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

Performs copy-assignment from source. Read more

impl<E: Enumerable> AsRef<E> for Enumerated<E>[src]

impl<E: PartialEq + Enumerable> PartialEq<Enumerated<E>> for Enumerated<E>[src]

impl<E: Enumerable> AsMut<E> for Enumerated<E>[src]

impl<E: Copy + Enumerable> Copy for Enumerated<E>[src]

impl<E: Eq + Enumerable> Eq for Enumerated<E>[src]

impl<E: Debug + Enumerable> Debug for Enumerated<E>[src]

impl<E: Enumerable + Serialize> Serialize for Enumerated<E>[src]

impl<'de, E: Enumerable + Deserialize<'de>> Deserialize<'de> for Enumerated<E>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

impl<T> Borrow<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[src]

type Output = T

Should always be Self