[][src]Struct asn1rs_model::model::Choice

pub struct Choice { /* fields omitted */ }

Implementations

impl Choice[src]

pub fn from_variants(variants: impl Iterator<Item = ChoiceVariant>) -> Self[src]

pub const fn with_extension_after(self, extension_after: Option<usize>) -> Self[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn variants(&self) -> impl Iterator<Item = &ChoiceVariant>[src]

pub fn is_extensible(&self) -> bool[src]

pub fn extension_after_index(&self) -> Option<usize>[src]

Trait Implementations

impl Clone for Choice[src]

impl Debug for Choice[src]

impl From<Vec<ChoiceVariant>> for Choice[src]

impl PartialEq<Choice> for Choice[src]

impl PartialOrd<Choice> for Choice[src]

impl StructuralPartialEq for Choice[src]

impl<'_> TryFrom<&'_ mut Peekable<IntoIter<Token>>> for Choice[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Choice

impl Send for Choice

impl Sync for Choice

impl Unpin for Choice

impl UnwindSafe for Choice

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.