Skip to main content

NonEmptyDistinguishedOneofDecoder

Trait NonEmptyDistinguishedOneofDecoder 

Source
pub trait NonEmptyDistinguishedOneofDecoder: NonEmptyOneof + Sized {
    // Required method
    fn oneof_decode_field_distinguished<B: Buf + ?Sized>(
        tag: u32,
        wire_type: WireType,
        buf: Capped<'_, B>,
        ctx: RestrictedDecodeContext,
    ) -> Result<(Self, Canonicity), DecodeError>;
}
Expand description

Distinguished owned decoding trait for non-empty oneofs.

Required Methods§

Source

fn oneof_decode_field_distinguished<B: Buf + ?Sized>( tag: u32, wire_type: WireType, buf: Capped<'_, B>, ctx: RestrictedDecodeContext, ) -> Result<(Self, Canonicity), DecodeError>

Decodes from the given buffer.

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.

Implementations on Foreign Types§

Source§

impl<T> NonEmptyDistinguishedOneofDecoder for Box<T>

Implementors§