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
impl Plain for u8impl Plain for u16impl Plain for u32impl Plain for u64impl Plain for usizeimpl Plain for i8impl Plain for i16impl Plain for i32impl Plain for i64impl Plain for isizeimpl<S> Plain for [S] where S: Plain