Expand description
§AnyNull
A simple Rust utility crate for unifying various “kinds” of null. Instead of ptr::null(), ptr::null_mut(), None::<&_>, etc., now all forms of null can be called just null().
Traits§
- None
IsNull - Many types are not themselves nullable,
but when wrapped in an
Optioneffectively useNoneas null (especially with the niche-filling optimization). - Nullable
- Any type that can be some form of null.
Functions§
- is_null
- Wraps around
<P as Nullable>::is_null(ptr) - null
- Conveniently wraps arounnd
<P as Nullable>::NULL.