Struct asn1rs::model::ChoiceVariant
source · pub struct ChoiceVariant<RS = Resolved>where
RS: ResolveState,{
pub name: String,
pub tag: Option<Tag>,
pub type: Type<RS>,
}
Fields§
§name: String
§tag: Option<Tag>
§type: Type<RS>
Implementations§
source§impl<RS> ChoiceVariant<RS>where
RS: ResolveState,
impl<RS> ChoiceVariant<RS>where RS: ResolveState,
source§impl ChoiceVariant<Unresolved>
impl ChoiceVariant<Unresolved>
pub fn try_resolve<R>( &self, resolver: &R ) -> Result<ChoiceVariant<Resolved>, Error>where R: Resolver<<Resolved as ResolveState>::SizeType> + Resolver<<Resolved as ResolveState>::RangeType> + Resolver<<Resolved as ResolveState>::ConstType> + Resolver<Type<Unresolved>>,
Trait Implementations§
source§impl<RS> Clone for ChoiceVariant<RS>where
RS: Clone + ResolveState,
impl<RS> Clone for ChoiceVariant<RS>where RS: Clone + ResolveState,
source§fn clone(&self) -> ChoiceVariant<RS>
fn clone(&self) -> ChoiceVariant<RS>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<RS> Debug for ChoiceVariant<RS>where
RS: Debug + ResolveState,
impl<RS> Debug for ChoiceVariant<RS>where RS: Debug + ResolveState,
source§impl<RS> PartialEq<ChoiceVariant<RS>> for ChoiceVariant<RS>where
RS: PartialEq<RS> + ResolveState,
impl<RS> PartialEq<ChoiceVariant<RS>> for ChoiceVariant<RS>where RS: PartialEq<RS> + ResolveState,
source§fn eq(&self, other: &ChoiceVariant<RS>) -> bool
fn eq(&self, other: &ChoiceVariant<RS>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<RS> PartialOrd<ChoiceVariant<RS>> for ChoiceVariant<RS>where
RS: PartialOrd<RS> + ResolveState,
impl<RS> PartialOrd<ChoiceVariant<RS>> for ChoiceVariant<RS>where RS: PartialOrd<RS> + ResolveState,
source§fn partial_cmp(&self, other: &ChoiceVariant<RS>) -> Option<Ordering>
fn partial_cmp(&self, other: &ChoiceVariant<RS>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl<RS> TagProperty for ChoiceVariant<RS>where
RS: ResolveState,
impl<RS> TagProperty for ChoiceVariant<RS>where RS: ResolveState,
impl<RS> StructuralPartialEq for ChoiceVariant<RS>where RS: ResolveState,
Auto Trait Implementations§
impl<RS> RefUnwindSafe for ChoiceVariant<RS>where <RS as ResolveState>::ConstType: RefUnwindSafe, <RS as ResolveState>::RangeType: RefUnwindSafe, <RS as ResolveState>::SizeType: RefUnwindSafe,
impl<RS> Send for ChoiceVariant<RS>where <RS as ResolveState>::ConstType: Send, <RS as ResolveState>::RangeType: Send, <RS as ResolveState>::SizeType: Send,
impl<RS> Sync for ChoiceVariant<RS>where <RS as ResolveState>::ConstType: Sync, <RS as ResolveState>::RangeType: Sync, <RS as ResolveState>::SizeType: Sync,
impl<RS> Unpin for ChoiceVariant<RS>where <RS as ResolveState>::ConstType: Unpin, <RS as ResolveState>::RangeType: Unpin, <RS as ResolveState>::SizeType: Unpin,
impl<RS> UnwindSafe for ChoiceVariant<RS>where <RS as ResolveState>::ConstType: UnwindSafe, <RS as ResolveState>::RangeType: UnwindSafe, <RS as ResolveState>::SizeType: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more