pub trait Nullable:
AnchorSerialize
+ AnchorDeserialize
+ PartialEq {
const NONE: Self;
// Provided methods
fn is_some(&self) -> bool { ... }
fn is_none(&self) -> bool { ... }
}
Expand description
Used for Borsh types that can have a None
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.