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§