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§
Object Safety§
This trait is not object safe.