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 1515//! Working with unsafe pointers in Rust is uncommon,
1616//! typically limited to a few patterns.
1717//!
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.
2421//!
2522//! # Common ways to create unsafe pointers
2623//!
You can’t perform that action at this time.
0 commit comments