pub trait Structure<'a>: Cast + Debug + AlignOf + AllBitPatternsValid {
    type RefTuple;

    fn to_tuple(&'a self) -> Self::RefTuple;
}
Expand description

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>.

Required Associated Types

This a tuple of refs, one for each structure element

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

Required Methods

Convert this struct to a rust tuple

Implementors