Function std::ptr::nullUnstable[src]
pub fn null<T>() -> *T
Create a null pointer.
Example
fn main() { use std::ptr; let p: *int = ptr::null(); assert!(p.is_null()); }use std::ptr; let p: *int = ptr::null(); assert!(p.is_null());
pub fn null<T>() -> *T
Create a null pointer.
use std::ptr; let p: *int = ptr::null(); assert!(p.is_null());
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).