Trait der::Choice [−][src]
ASN.1 CHOICE
denotes a union of one or more possible alternatives.
The types MUST have distinct tags.
This crate models choice as a trait, with a blanket impl for all types
which impl Decodable + Encodable + Tagged
(i.e. they are modeled as
a CHOICE
with only one possible variant)
Required methods
fn can_decode(tag: Tag) -> bool
[src]
Is the provided Tag
decodable as a variant of this CHOICE
?
Implementors
impl<'a> Choice<'a> for Any<'a>
[src]
fn can_decode(_: Tag) -> bool
[src]
impl<'a, T> Choice<'a> for T where
T: Decodable<'a> + Encodable + Tagged,
[src]
T: Decodable<'a> + Encodable + Tagged,