pub struct Enumerated {
pub members: Vec<Enumeral>,
pub extensible: Option<usize>,
pub constraints: Vec<Constraint>,
}
Expand description
Representation of an ASN1 ENUMERATED data element with corresponding enumerals and extension information. As defined in Rec. ITU-T X.680 (02/2021) §20
Fields§
§members: Vec<Enumeral>
§extensible: Option<usize>
§constraints: Vec<Constraint>
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 Constrainable for Enumerated
impl Constrainable for Enumerated
source§fn constraints(&self) -> &Vec<Constraint>
fn constraints(&self) -> &Vec<Constraint>
returns a reference to the type’s constraints
source§fn constraints_mut(&mut self) -> &mut Vec<Constraint>
fn constraints_mut(&mut self) -> &mut Vec<Constraint>
returns a mutable reference to the type’s constraints
source§impl Debug for Enumerated
impl Debug for Enumerated
source§impl From<&Enumerated> for PerVisibleRangeConstraints
impl From<&Enumerated> for PerVisibleRangeConstraints
source§fn from(value: &Enumerated) -> Self
fn from(value: &Enumerated) -> Self
Converts to this type from the input type.
source§impl PartialEq for Enumerated
impl PartialEq for Enumerated
impl StructuralPartialEq for Enumerated
Auto Trait Implementations§
impl Freeze for Enumerated
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)