Function std::ptr::null
[−]
[src]
pub const fn null<T>() -> *const T1.0.0
Creates a null raw pointer.
Examples
fn main() { use std::ptr; let p: *const i32 = ptr::null(); assert!(p.is_null()); }use std::ptr; let p: *const i32 = ptr::null(); assert!(p.is_null());