Module bytemuck::allocation

source ·
Expand description

Stuff to boost things in the alloc crate.

  • You must enable the extern_crate_alloc feature of bytemuck or you will not be able to use this module! This is generally done by adding the feature to the dependency in Cargo.toml like so:

    bytemuck = { version = "VERSION_YOU_ARE_USING", features = ["extern_crate_alloc"]}

Structs

  • As Box<[u8]>, but remembers the original alignment.

Traits

Functions