1.0.0 (const: 1.32.0)[][src]Function sp_std::ptr::null

pub const fn null<T>() -> *const T

Creates a null raw pointer.

Examples

use std::ptr;

let p: *const i32 = ptr::null();
assert!(p.is_null());