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.
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
)