Trait mesh::payload::transparent::Transparent
source · pub unsafe trait Transparent {
type Inner;
const OFFSET: usize;
}
Expand description
A type that can be encoded as a transparent wrapper around an inner type.
§Safety
The caller must ensure that there is only one non-zero-sized field in the struct, at the provided offset, and that constructing the struct by writing just that field is safe.
Required Associated Types§
Required Associated Constants§
Object Safety§
This trait is not object safe.