devela 0.29.0

A development substrate of coherence.
Documentation
// devela/src/sys/mem/_reexport_core.rs

use crate::{_reexport, _tags};

/* structs */

_reexport! { rust: core::mem,
    location: "sys/mem" => struct ManuallyDrop, tag: _tags!(mem),
    doc: "A wrapper to inhibit compiler from automatically calling `T`'s destructor.",
    ManuallyDrop
}
_reexport! { rust: core::mem,
    location: "sys/mem" => struct Discriminant, tag: _tags!(mem),
    doc: "Opaque type representing the discriminant of an enum.",
    Discriminant
}

/* unions */

_reexport! { rust: core::mem,
    location: "sys/mem" => union MaybeUninit, tag: _tags!(maybe mem),
    doc: "A wrapper type to construct uninitialized instances of `T`.",
    MaybeUninit
}

/* macros */

_reexport! { rust: core::mem,
    location: "sys/mem" => macro offset_of, tag: _tags!(mem),
    doc: "Expands to the offset in bytes of a field from the beginning of the given type.",
    offset_of
}

/* mem functions */

// NOTE: can't namespace this in `Mem`.
// NOTE: it shows a wrong deprecation message when re-exported. Ignore it.
_reexport! { rust: core::mem,
    location: "sys/mem" => fn transmute, tag: _tags!(mem),
    doc: "Reinterprets the bits of a value of one type as another type.",
    transmute
}