pub struct Choice {
pub extensible: Option<usize>,
pub options: Vec<ChoiceOption>,
pub constraints: Vec<Constraint>,
}
Expand description
Representation of an ASN1 CHOICE data element with corresponding members and extension information. As defined in Rec. ITU-T X.680 (02/2021) §29
Fields§
§extensible: Option<usize>
§options: Vec<ChoiceOption>
§constraints: Vec<Constraint>
Trait Implementations§
Source§impl Constrainable for Choice
impl Constrainable for Choice
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 From<&Choice> for PerVisibleRangeConstraints
impl From<&Choice> for PerVisibleRangeConstraints
Source§impl From<(Vec<ChoiceOption>, Option<ExtensionMarker>, Option<Vec<ChoiceOption>>)> for Choice
impl From<(Vec<ChoiceOption>, Option<ExtensionMarker>, Option<Vec<ChoiceOption>>)> for Choice
Source§fn from(
value: (Vec<ChoiceOption>, Option<ExtensionMarker>, Option<Vec<ChoiceOption>>),
) -> Self
fn from( value: (Vec<ChoiceOption>, Option<ExtensionMarker>, Option<Vec<ChoiceOption>>), ) -> Self
Converts to this type from the input type.
Source§impl IterNameTypes for Choice
impl IterNameTypes for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl Freeze for Choice
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnwindSafe for Choice
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
)