Function core::ptr::nullUnstable [-]  [+] [src]

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

Create a null pointer.

Example

fn main() { use std::ptr; let p: *const int = ptr::null(); assert!(p.is_null()); }
use std::ptr;

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