pub trait Nullable: Default + Into<Option<Self::Wrapped>> + Sealed { }
Expand description

Wrapper trait for an Option, allowing user-defined structs to be input as containers when defining a null element.

Note: this trait is currently sealed and cannot be implemented for types outside this crate.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Nullable for Option<T>

Implementors§

source§

impl<T: Zero> Nullable for NotZero<T>