[−][src]Trait zvariant::SimpleDecode
Simpler sibling of Decode
.
This trait is implemented by all the types (mostly basic) whose signature is always the same regardless of their actual value.
Provided methods
fn slice_data_simple(
data: impl Into<SharedData>,
format: EncodingFormat
) -> Result<SharedData, VariantError> where
Self: Sized,
data: impl Into<SharedData>,
format: EncodingFormat
) -> Result<SharedData, VariantError> where
Self: Sized,
Same as Decode::slice_data
, except you don't have to pass any signature to it.
fn decode_simple(
data: impl Into<SharedData>,
format: EncodingFormat
) -> Result<Self, VariantError> where
Self: Sized,
data: impl Into<SharedData>,
format: EncodingFormat
) -> Result<Self, VariantError> where
Self: Sized,
Same as Decode::decode
, except you don't have to pass any signature to it.