[][src]Trait zvariant::SimpleDecode

pub trait SimpleDecode: Decode {
    fn slice_data_simple(
        data: impl Into<SharedData>,
        format: EncodingFormat
    ) -> Result<SharedData, VariantError>
    where
        Self: Sized
, { ... }
fn decode_simple(
        data: impl Into<SharedData>,
        format: EncodingFormat
    ) -> Result<Self, VariantError>
    where
        Self: Sized
, { ... } }

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

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

Same as Decode::decode, except you don't have to pass any signature to it.

Loading content...

Implementations on Foreign Types

impl SimpleDecode for String[src]

impl SimpleDecode for u8[src]

impl SimpleDecode for bool[src]

impl SimpleDecode for i16[src]

impl SimpleDecode for u16[src]

impl SimpleDecode for i32[src]

impl SimpleDecode for u32[src]

impl SimpleDecode for i64[src]

impl SimpleDecode for u64[src]

impl SimpleDecode for f64[src]

Loading content...

Implementors

impl SimpleDecode for Variant[src]

impl SimpleDecode for ObjectPath[src]

impl SimpleDecode for Signature[src]

Loading content...