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
)