pub trait ArgumentDecoder<'a>: Sized {
// Required method
fn decode(de: &mut IDLDeserialize<'a>) -> Result<Self>;
}Expand description
Allow decoding of any sized argument.
Required Methods§
Sourcefn decode(de: &mut IDLDeserialize<'a>) -> Result<Self>
fn decode(de: &mut IDLDeserialize<'a>) -> Result<Self>
Decodes a value of type Self, modifying the deserializer (values are consumed).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<'a> ArgumentDecoder<'a> for ()
Decode an empty tuple.
impl<'a> ArgumentDecoder<'a> for ()
Decode an empty tuple.