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