Trait zeroconf::ffi::UnwrapOrNull [−][src]
pub trait UnwrapOrNull<T> { fn unwrap_or_null(&self) -> *const T; }
Expand description
Helper trait to unwrap a type to a *const T
or a null-pointer if not present.
Required methods
fn unwrap_or_null(&self) -> *const T
fn unwrap_or_null(&self) -> *const T
Unwraps this type to *const T
or ptr::null()
if not present.