VariantTrait

Trait VariantTrait 

Source
pub trait VariantTrait<DataType, FormatType> {
    // Required method
    fn context_variant(variant_name_ref: &str) -> Context;
}

Required Methods§

Source

fn context_variant(variant_name_ref: &str) -> Context

Context of an error from an enum variant

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<DataType, DeserializerType, FormatType> VariantTrait<DataType, FormatType> for DeserializerType
where FormatType: Trait, DeserializerType: Trait<DataType, FormatType>,