spl_pod

Module option

Source
Expand description

Generic Option that can be used as a Pod for types that can have a designated None value.

For example, a 64-bit unsigned integer can designate 0 as a None value. This would be equivalent to Option<NonZeroU64> and provide the same memory layout optimization.

Structs§

  • A “pod-enabled” type that can be used as an Option<T> without requiring extra space to indicate if the value is Some or None.

Traits§

  • Trait for types that can be None.