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