Module libera::devela::mem

source ·
Expand description

Memory, extends core::mem.

Modules

  • This crate gives small utilities for casting between plain data types.

Traits

  • A marker trait that allows types that have some invalid bit patterns to be used in places that otherwise require AnyBitPattern or Pod types by performing a runtime check on a perticular set of bits. This is particularly useful for types like fieldless (‘C-style’) enums, char, bool, and structs containing them.
  • Marker trait for “plain old data” types with no uninit (or padding) bytes.
  • Trait for types which are Pod when wrapped in Option.
  • Trait for types which are Zeroable when wrapped in Option.