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§
Sourcefn oneof_decode_field_distinguished<B: Buf + ?Sized>(
tag: u32,
wire_type: WireType,
buf: Capped<'_, B>,
ctx: RestrictedDecodeContext,
) -> Result<(Self, Canonicity), DecodeError>
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.