pub struct BitString {
pub constraints: Vec<Constraint>,
pub distinguished_values: Option<Vec<DistinguishedValue>>,
}
Expand description
Representation of an ASN1 BIT STRING data element with corresponding constraints and distinguished values defining the individual bits. As defined in Rec. ITU-T X.680 (02/2021) §22
Fields§
§constraints: Vec<Constraint>
§distinguished_values: Option<Vec<DistinguishedValue>>
Trait Implementations§
source§impl Constrainable for BitString
impl Constrainable for BitString
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<(Option<Vec<DistinguishedValue>>, Option<Vec<Constraint>>)> for BitString
impl From<(Option<Vec<DistinguishedValue>>, Option<Vec<Constraint>>)> for BitString
source§fn from(
value: (Option<Vec<DistinguishedValue>>, Option<Vec<Constraint>>),
) -> Self
fn from( value: (Option<Vec<DistinguishedValue>>, Option<Vec<Constraint>>), ) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for BitString
Auto Trait Implementations§
impl Freeze for BitString
impl RefUnwindSafe for BitString
impl Send for BitString
impl Sync for BitString
impl Unpin for BitString
impl UnwindSafe for BitString
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
)