kvarn_async::prelude::compact_str::core

Module mem

1.6.0 · source
Expand description

Basic functions for dealing with memory.

This module contains functions for querying the size and alignment of types, initializing and manipulating memory.

Macros§

  • Expands to the offset in bytes of a field from the beginning of the given type.

Structs§

  • Opaque type representing the discriminant of an enum.
  • A wrapper to inhibit the compiler from automatically calling T’s destructor. This wrapper is 0-cost.
  • AssumeExperimental
    Configurable proof assumptions of TransmuteFrom.

Traits§

  • TransmuteFromExperimental
    Marks that Src is transmutable into Self.

Functions§

  • Returns the ABI-required minimum alignment of a type in bytes.
  • Returns the ABI-required minimum alignment of the type of the value that val points to in bytes.
  • Returns a value uniquely identifying the enum variant in v.
  • Disposes of a value.
  • Takes ownership and “forgets” about the value without running its destructor.
  • min_align_ofDeprecated
    Returns the ABI-required minimum alignment of a type in bytes.
  • Returns the