[][src]Trait gvariant::Structure

pub trait Structure<'a>: Cast + Debug + AlignOf + AllBitPatternsValid {
    type RefTuple;
    fn to_tuple(&'a self) -> Self::RefTuple;
}

A trait that all generated structure types implement.

This exists mostly to document the interface of the generated types. Don't implement this for your own types.

All structures also implement Into<Self::RefTuple>.

Associated Types

type RefTuple

This a tuple of refs, one for each structure element

For (is) this will be (&'a i32, &'a Str).

Loading content...

Required methods

fn to_tuple(&'a self) -> Self::RefTuple

Convert this struct to a rust tuple

Loading content...

Implementors

Loading content...