Struct asn1rs::model::Asn

source ·
pub struct Asn<RS = Resolved>where
    RS: ResolveState,{
    pub tag: Option<Tag>,
    pub type: Type<RS>,
    pub default: Option<<RS as ResolveState>::ConstType>,
}

Fields§

§tag: Option<Tag>§type: Type<RS>§default: Option<<RS as ResolveState>::ConstType>

Implementations§

source§

impl<RS> Asn<RS>where RS: ResolveState,

source

pub fn make_optional(&mut self)

source

pub fn set_default(&mut self, value: <RS as ResolveState>::ConstType)

source

pub fn opt_tagged(tag: Option<Tag>, type: Type<RS>) -> Asn<RS>

source

pub fn untagged(type: Type<RS>) -> Asn<RS>

source

pub fn tagged(tag: Tag, type: Type<RS>) -> Asn<RS>

source§

impl Asn<Unresolved>

Trait Implementations§

source§

impl<RS> Clone for Asn<RS>where RS: Clone + ResolveState, <RS as ResolveState>::ConstType: Clone,

source§

fn clone(&self) -> Asn<RS>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<RS> Debug for Asn<RS>where RS: Debug + ResolveState, <RS as ResolveState>::ConstType: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<Type<Resolved>> for Asn<Resolved>

source§

fn from(type: Type<Resolved>) -> Asn<Resolved>

Converts to this type from the input type.
source§

impl<RS> PartialEq<Asn<RS>> for Asn<RS>where RS: PartialEq<RS> + ResolveState, <RS as ResolveState>::ConstType: PartialEq<<RS as ResolveState>::ConstType>,

source§

fn eq(&self, other: &Asn<RS>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<RS> PartialOrd<Asn<RS>> for Asn<RS>where RS: PartialOrd<RS> + ResolveState, <RS as ResolveState>::ConstType: PartialOrd<<RS as ResolveState>::ConstType>,

source§

fn partial_cmp(&self, other: &Asn<RS>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TagProperty for Asn<Resolved>

source§

fn tag(&self) -> Option<Tag>

source§

fn set_tag(&mut self, tag: Tag)

source§

fn reset_tag(&mut self)

source§

fn with_tag_opt(self, tag: Option<Tag>) -> Selfwhere Self: Sized,

source§

fn with_tag(self, tag: Tag) -> Selfwhere Self: Sized,

source§

fn without_tag(self) -> Selfwhere Self: Sized,

source§

impl<RS> Target for Asn<RS>where RS: ResolveState,

source§

impl<RS> StructuralPartialEq for Asn<RS>where RS: ResolveState,

Auto Trait Implementations§

§

impl<RS> RefUnwindSafe for Asn<RS>where <RS as ResolveState>::ConstType: RefUnwindSafe, <RS as ResolveState>::RangeType: RefUnwindSafe, <RS as ResolveState>::SizeType: RefUnwindSafe,

§

impl<RS> Send for Asn<RS>where <RS as ResolveState>::ConstType: Send, <RS as ResolveState>::RangeType: Send, <RS as ResolveState>::SizeType: Send,

§

impl<RS> Sync for Asn<RS>where <RS as ResolveState>::ConstType: Sync, <RS as ResolveState>::RangeType: Sync, <RS as ResolveState>::SizeType: Sync,

§

impl<RS> Unpin for Asn<RS>where <RS as ResolveState>::ConstType: Unpin, <RS as ResolveState>::RangeType: Unpin, <RS as ResolveState>::SizeType: Unpin,

§

impl<RS> UnwindSafe for Asn<RS>where <RS as ResolveState>::ConstType: UnwindSafe, <RS as ResolveState>::RangeType: UnwindSafe, <RS as ResolveState>::SizeType: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more