Trait rasn::types::DecodeChoice

source ·
pub trait DecodeChoice: Choice + Decode {
    // Required method
    fn from_tag<D: Decoder>(decoder: &mut D, tag: Tag) -> Result<Self, D::Error>;
}
Expand description

A CHOICE value.

Required Methods§

source

fn from_tag<D: Decoder>(decoder: &mut D, tag: Tag) -> Result<Self, D::Error>

Decode the choice value based on the provided tag.

Object Safety§

This trait is not object safe.

Implementors§