Trait ContextualDecode

Source
pub trait ContextualDecode {
    type Target;
    type Context;
    type Output;

    // Required method
    fn decode(value: Self::Target, ctx: Self::Context) -> Self::Output;
}
Expand description

Trait that provides the contextual decoding of the value.

Required Associated Types§

Source

type Target

Type of value to decode.

Source

type Context

Type of decoding context.

Source

type Output

Type of decoding output.

Required Methods§

Source

fn decode(value: Self::Target, ctx: Self::Context) -> Self::Output

Methods to implement the contextual decoding function

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§