Trait asn1_rs::Choice

source ·
pub trait Choice {
    // Required method
    fn can_decode(tag: Tag) -> bool;
}

Required Methods§

source

fn can_decode(tag: Tag) -> bool

Is the provided Tag decodable as a variant of this CHOICE?

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Choice for T
where T: Tagged,

This blanket impl allows any Tagged type to function as a Choice with a single alternative.