File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 15
15
//! Working with unsafe pointers in Rust is uncommon,
16
16
//! typically limited to a few patterns.
17
17
//!
18
- //! Use the [`null` function](fn.null.html) to create null pointers,
19
- //! the [`is_null`](trait.PtrExt.html#tymethod.is_null)
20
- //! methods of the [`PtrExt` trait](trait.PtrExt.html) to check for null.
21
- //! The `PtrExt` trait is imported by the prelude, so `is_null` etc.
22
- //! work everywhere. The `PtrExt` also defines the `offset` method,
23
- //! for pointer math.
18
+ //! Use the [`null` function](fn.null.html) to create null pointers, and
19
+ //! the `is_null` method of the `*const T` type to check for null.
20
+ //! The `*const T` type also defines the `offset` method, for pointer math.
24
21
//!
25
22
//! # Common ways to create unsafe pointers
26
23
//!
You can’t perform that action at this time.
0 commit comments