rasn_compiler::intermediate::types

Trait Constrainable

Source
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§

Source

fn constraints(&self) -> &Vec<Constraint>

returns a reference to the type’s constraints

Source

fn constraints_mut(&mut self) -> &mut Vec<Constraint>

returns a mutable reference to the type’s constraints

Implementors§