Module obj_pool::invalid_value[][src]

Structs

OptionInvalidValue

Optimization for Option<T> where T implements an InvalidValue trait and reuses on of the possible values of T to represents None. It's basically the same as NonZero*-types but more powerful as it allows to reuse any value, not just 0 for any type, not just integers. As a downside, it's not an Option, it's a separate type which is needed to be handled explicitly.

Traits

InvalidValue

Type with a specific value we could reuse as None in OptionInvalidValue;