rasn::types

Trait Choice

source
pub trait Choice: Sized {
    const VARIANTS: &'static [TagTree];
    const VARIANCE_CONSTRAINT: Constraints<'static>;
    const IDENTIFIERS: &'static [&'static str];
    const EXTENDED_VARIANTS: Option<&'static [TagTree]> = None;
}
Expand description

A CHOICE value.

Required Associated Constants§

source

const VARIANTS: &'static [TagTree]

Variants contained in the “root component list”.

source

const VARIANCE_CONSTRAINT: Constraints<'static>

Constraint for the choice type, based on the number of root components. Used for PER encoding.

source

const IDENTIFIERS: &'static [&'static str]

Variant identifiers for text-based encoding rules

Provided Associated Constants§

source

const EXTENDED_VARIANTS: Option<&'static [TagTree]> = None

Variants contained in the list of extensions.

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§

source§

impl Choice for Open

source§

const VARIANTS: &'static [TagTree] = _

source§

const VARIANCE_CONSTRAINT: Constraints<'static> = _

source§

const EXTENDED_VARIANTS: Option<&'static [TagTree]> = None

source§

const IDENTIFIERS: &'static [&'static str] = _