Trait ed25519_dalek::pkcs8::spki::der::Choice
pub trait Choice<'a>: Decode<'a> + Tagged {
// Required method
fn can_decode(tag: Tag) -> bool;
}
Available on crate feature
pkcs8
only.Expand description
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 Decode + FixedTag
(i.e. they are modeled as a CHOICE
with only one possible variant)
Required Methods§
fn can_decode(tag: Tag) -> bool
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.