Module Int64_u.OptionSource

This allows us to represent t option without allocating for Some _ tags. Some min_value is not representable because its representation would overlap with the representation of None.

Sourcetype value = t
Sourcetype t : bits64 mod everything
Sourceval none : t
Sourceval some : value -> t [@@zero_alloc]
Sourceval unchecked_some : value -> t [@@zero_alloc]
Sourceval some_is_representable : value -> Base.bool [@@zero_alloc]
Sourceval is_none : t -> Base.bool [@@zero_alloc]
Sourceval is_some : t -> Base.bool [@@zero_alloc]
Sourceval value : t -> default:value -> value [@@zero_alloc]
Sourceval unchecked_value : t -> value [@@zero_alloc]
Sourceval to_option : t -> Boxed.t Base.option
Sourceval of_option : Boxed.t Base.option -> t [@@zero_alloc]
Sourceval to_local_option : t -> Boxed.t Base.option @ local [@@zero_alloc]
Sourceval of_local_option : Boxed.t Base.option @ local -> t [@@zero_alloc]
Sourcemodule Optional_syntax : sig ... end