pub trait OneofDecoder: Oneof {
// Required method
fn oneof_decode_field<B: Buf + ?Sized>(
value: &mut Self,
tag: u32,
wire_type: WireType,
buf: Capped<'_, B>,
ctx: DecodeContext,
) -> Result<(), DecodeError>;
}Expand description
Relaxed owned decoding trait for oneofs.
Required Methods§
Sourcefn oneof_decode_field<B: Buf + ?Sized>(
value: &mut Self,
tag: u32,
wire_type: WireType,
buf: Capped<'_, B>,
ctx: DecodeContext,
) -> Result<(), DecodeError>
fn oneof_decode_field<B: Buf + ?Sized>( value: &mut Self, tag: u32, wire_type: WireType, buf: Capped<'_, B>, ctx: DecodeContext, ) -> Result<(), 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.