devela_base_alloc 0.26.0

base alloc shared functionality for devela
Documentation
// devela_base_alloc::sys::mem::_reexport

use crate::{_reexport, _tags};

_reexport! { rust: alloc::boxed, location: "sys::mem", tag: _tags!(mem),
    doc: "A pointer type that uniquely owns a heap allocation of type `T`.",
    +doc: "It is used as the underlying [`Storage`][super::Storage] for the [`Boxed`][crate::Boxed]
    marker struct, just as a [`BareBox`][super::BareBox] is used as the storage for [`Bare`].

A special magic property of `Box` is that it allows moving with [*boxed], unlike
other `Deref` types. It is hoped that an eventual `DerefMove` trait will make it
possible for other types to opt in to move-from-deref.
",
    Box
}

_reexport! { rust: alloc::rc, location: "sys::mem", tag: _tags!(mem lifetime),
    doc: "A single-threaded reference-counting pointer.",
    Rc
}
_reexport! { rust: alloc::rc, location: "sys::mem", tag: _tags!(mem lifetime),
    doc: "A version of `Rc` that holds a non-owning ref to the managed allocation.",
    @Weak as RcWeak
}