Struct rasn_compiler::intermediate::constraints::ValueConstraint
source · pub struct ValueConstraint {
pub min_value: Option<ASN1Value>,
pub max_value: Option<ASN1Value>,
pub extensible: bool,
}
Expand description
Representation of a range constraint used for subtyping in ASN1 specifications
Fields§
§min_value: Option<ASN1Value>
§max_value: Option<ASN1Value>
§extensible: bool
Trait Implementations§
source§impl Clone for ValueConstraint
impl Clone for ValueConstraint
source§fn clone(&self) -> ValueConstraint
fn clone(&self) -> ValueConstraint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ValueConstraint
impl Debug for ValueConstraint
source§impl<'a> From<(ASN1Value, ExtensionMarker)> for ValueConstraint
impl<'a> From<(ASN1Value, ExtensionMarker)> for ValueConstraint
source§fn from(value: (ASN1Value, ExtensionMarker)) -> Self
fn from(value: (ASN1Value, ExtensionMarker)) -> Self
Converts to this type from the input type.
source§impl<'a> From<(ASN1Value, RangeSeperator, ASN1Value)> for ValueConstraint
impl<'a> From<(ASN1Value, RangeSeperator, ASN1Value)> for ValueConstraint
source§impl<'a> From<(ASN1Value, RangeSeperator, ASN1Value, ExtensionMarker)> for ValueConstraint
impl<'a> From<(ASN1Value, RangeSeperator, ASN1Value, ExtensionMarker)> for ValueConstraint
source§fn from(value: (ASN1Value, RangeSeperator, ASN1Value, ExtensionMarker)) -> Self
fn from(value: (ASN1Value, RangeSeperator, ASN1Value, ExtensionMarker)) -> Self
Converts to this type from the input type.
source§impl<'a> From<ASN1Value> for ValueConstraint
impl<'a> From<ASN1Value> for ValueConstraint
source§impl PartialEq for ValueConstraint
impl PartialEq for ValueConstraint
source§fn eq(&self, other: &ValueConstraint) -> bool
fn eq(&self, other: &ValueConstraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ValueConstraint
Auto Trait Implementations§
impl RefUnwindSafe for ValueConstraint
impl Send for ValueConstraint
impl Sync for ValueConstraint
impl Unpin for ValueConstraint
impl UnwindSafe for ValueConstraint
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