Struct asn1rs::model::EnumeratedVariant
source · pub struct EnumeratedVariant { /* private fields */ }
Implementations§
source§impl EnumeratedVariant
impl EnumeratedVariant
pub fn from_name<I>(name: I) -> EnumeratedVariantwhere I: ToString,
pub fn from_name_number<I>(name: I, number: usize) -> EnumeratedVariantwhere I: ToString,
pub const fn with_number(self, number: usize) -> EnumeratedVariant
pub const fn with_number_opt(self, number: Option<usize>) -> EnumeratedVariant
pub fn name(&self) -> &str
pub fn number(&self) -> Option<usize>
Trait Implementations§
source§impl Clone for EnumeratedVariant
impl Clone for EnumeratedVariant
source§fn clone(&self) -> EnumeratedVariant
fn clone(&self) -> EnumeratedVariant
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 Debug for EnumeratedVariant
impl Debug for EnumeratedVariant
source§impl PartialEq<EnumeratedVariant> for EnumeratedVariant
impl PartialEq<EnumeratedVariant> for EnumeratedVariant
source§fn eq(&self, other: &EnumeratedVariant) -> bool
fn eq(&self, other: &EnumeratedVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EnumeratedVariant> for EnumeratedVariant
impl PartialOrd<EnumeratedVariant> for EnumeratedVariant
source§fn partial_cmp(&self, other: &EnumeratedVariant) -> Option<Ordering>
fn partial_cmp(&self, other: &EnumeratedVariant) -> 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 moreimpl Eq for EnumeratedVariant
impl StructuralEq for EnumeratedVariant
impl StructuralPartialEq for EnumeratedVariant
Auto Trait Implementations§
impl RefUnwindSafe for EnumeratedVariant
impl Send for EnumeratedVariant
impl Sync for EnumeratedVariant
impl Unpin for EnumeratedVariant
impl UnwindSafe for EnumeratedVariant
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.