devela/sys/mem/ptr/
reexports.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// devela::sys::mem::ptr::reexports
//
//! Reexported items from `core`.
//

use crate::code::reexport;

// structs
reexport! { rust: core::ptr,
    doc: "`*mut T` but non-zero and *covariant*.",
    @NonNull as PtrNonNull
}

// macros
reexport! { rust: core::ptr,
    doc: "Create a `const` raw pointer to a place, without creating an intermediate reference.",
    @addr_of as addr_of
}
reexport! { rust: core::ptr,
    doc: "Create a `mut` raw pointer to a place, without creating an intermediate reference.",
    @addr_of_mut as addr_of_mut
}