[][src]Struct asn1rs_model::model::Asn

pub struct Asn {
    pub tag: Option<Tag>,
    pub type: Type,
}

Fields

tag: Option<Tag>type: Type

Implementations

impl Asn[src]

pub fn optional(&mut self)[src]

pub const fn opt_tagged(tag: Option<Tag>, r#type: Type) -> Self[src]

pub const fn untagged(r#type: Type) -> Self[src]

pub const fn tagged(tag: Tag, r#type: Type) -> Self[src]

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

pub fn extensible_after_variant(&self) -> Option<&str>[src]

Trait Implementations

impl Clone for Asn[src]

impl Debug for Asn[src]

impl From<Type> for Asn[src]

impl PartialEq<Asn> for Asn[src]

impl PartialOrd<Asn> for Asn[src]

impl StructuralPartialEq for Asn[src]

impl TagProperty for Asn[src]

Auto Trait Implementations

impl RefUnwindSafe for Asn

impl Send for Asn

impl Sync for Asn

impl Unpin for Asn

impl UnwindSafe for Asn

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.