Struct asn1rs_model::model::Enumerated
source · pub struct Enumerated { /* private fields */ }
Implementations§
source§impl Enumerated
impl Enumerated
pub fn from_variants(variants: impl Into<Vec<EnumeratedVariant>>) -> Self
pub fn from_names<I: ToString>(variants: impl Iterator<Item = I>) -> Self
pub const fn with_extension_after(self, extension_after: usize) -> Self
pub const fn with_maybe_extension_after( self, extension_after: Option<usize> ) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn variants(&self) -> impl Iterator<Item = &EnumeratedVariant>
pub fn is_extensible(&self) -> bool
pub fn extension_after_index(&self) -> Option<usize>
Trait Implementations§
source§impl Clone for Enumerated
impl Clone for Enumerated
source§fn clone(&self) -> Enumerated
fn clone(&self) -> Enumerated
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 Enumerated
impl Debug for Enumerated
source§impl From<Vec<EnumeratedVariant, Global>> for Enumerated
impl From<Vec<EnumeratedVariant, Global>> for Enumerated
source§fn from(variants: Vec<EnumeratedVariant>) -> Self
fn from(variants: Vec<EnumeratedVariant>) -> Self
Converts to this type from the input type.
source§impl PartialEq<Enumerated> for Enumerated
impl PartialEq<Enumerated> for Enumerated
source§fn eq(&self, other: &Enumerated) -> bool
fn eq(&self, other: &Enumerated) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Enumerated> for Enumerated
impl PartialOrd<Enumerated> for Enumerated
source§fn partial_cmp(&self, other: &Enumerated) -> Option<Ordering>
fn partial_cmp(&self, other: &Enumerated) -> 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 Enumerated
impl StructuralEq for Enumerated
impl StructuralPartialEq for Enumerated
Auto Trait Implementations§
impl RefUnwindSafe for Enumerated
impl Send for Enumerated
impl Sync for Enumerated
impl Unpin for Enumerated
impl UnwindSafe for Enumerated
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.