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 From<(ASN1Value, ExtensionMarker)> for ValueConstraint
impl 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 From<(ASN1Value, RangeSeperator, ASN1Value)> for ValueConstraint
impl From<(ASN1Value, RangeSeperator, ASN1Value)> for ValueConstraint
Source§impl From<(ASN1Value, RangeSeperator, ASN1Value, ExtensionMarker)> for ValueConstraint
impl 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 From<ASN1Value> for ValueConstraint
impl From<ASN1Value> for ValueConstraint
Source§impl PartialEq for ValueConstraint
impl PartialEq for ValueConstraint
impl StructuralPartialEq for ValueConstraint
Auto Trait Implementations§
impl Freeze for ValueConstraint
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
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
)