pub struct Integer {
pub constraints: Vec<Constraint>,
pub distinguished_values: Option<Vec<DistinguishedValue>>,
}
Expand description
Representation of an ASN1 INTEGER data element with corresponding constraints and distinguished values. As defined in Rec. ITU-T X.680 (02/2021) §19
Fields§
§constraints: Vec<Constraint>
§distinguished_values: Option<Vec<DistinguishedValue>>
Implementations§
source§impl Integer
impl Integer
sourcepub fn int_type(&self) -> IntegerType
pub fn int_type(&self) -> IntegerType
Returns the IntegerType of self
.
The IntegerType describes the absolute range of an integer
Trait Implementations§
source§impl Constrainable for Integer
impl Constrainable for Integer
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<(&str, Option<Vec<DistinguishedValue>>, Option<Vec<Constraint>>)> for Integer
impl From<(&str, Option<Vec<DistinguishedValue>>, Option<Vec<Constraint>>)> for Integer
source§fn from(
value: (&str, Option<Vec<DistinguishedValue>>, Option<Vec<Constraint>>),
) -> Self
fn from( value: (&str, Option<Vec<DistinguishedValue>>, Option<Vec<Constraint>>), ) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Integer
Auto Trait Implementations§
impl Freeze for Integer
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnwindSafe for Integer
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
)