Trait plain::Plain [] [src]

pub unsafe trait Plain { }

A trait for plain reinterpretable data.

A type can be Plain if it is #repr(C) and only contains data with no possible invalid values. Specifically, bool, char, enums, tuples, pointers and references are not Plain. On the other hand, arrays of a Plain type, and structures where all members are plain, are usually okay.

Implementors