pub trait Nullable:
PartialEq
+ Pod
+ Sized {
const NONE: Self;
// Provided methods
fn is_none(&self) -> bool { ... }
fn is_some(&self) -> bool { ... }
}
Expand description
Trait for types that can be None
.
This trait is used to indicate that a type can be None
according to a
specific value.
Required Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.