MemberOrOption

Trait MemberOrOption 

Source
pub trait MemberOrOption {
    const IS_CHOICE_OPTION: bool;

    // Required methods
    fn name(&self) -> &str;
    fn ty(&self) -> &ASN1Type;
    fn constraints(&self) -> &[Constraint];
    fn is_recursive(&self) -> bool;
    fn tag(&self) -> Option<&AsnTag>;
}
Expand description

Convenience trait for processing members of constructed types (SEQUENCE, SET) and CHOICEs.

Required Associated Constants§

Required Methods§

Source

fn name(&self) -> &str

Source

fn ty(&self) -> &ASN1Type

Source

fn constraints(&self) -> &[Constraint]

Source

fn is_recursive(&self) -> bool

Source

fn tag(&self) -> Option<&AsnTag>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§