pub trait Constrainable {
// Required methods
fn constraints(&self) -> &Vec<Constraint>;
fn constraints_mut(&mut self) -> &mut Vec<Constraint>;
}
Expand description
Trait shared by all ASN1 types that can be constrained a.k.a subtyped. See also Rec. ITU-T X.680 (02/2021) §49 - §51
Required Methods§
sourcefn constraints(&self) -> &Vec<Constraint>
fn constraints(&self) -> &Vec<Constraint>
returns a reference to the type’s constraints
sourcefn constraints_mut(&mut self) -> &mut Vec<Constraint>
fn constraints_mut(&mut self) -> &mut Vec<Constraint>
returns a mutable reference to the type’s constraints