Comparable.With_zero
module T : sig ... end
include Base.Comparable.With_zero with type t := T.t
val is_positive : T.t -> bool
val is_non_negative : T.t -> bool
val is_negative : T.t -> bool
val is_non_positive : T.t -> bool
val sign : T.t -> Base.Sign.t
Returns Neg
, Zero
, or Pos
in a way consistent with the above functions.
val validate_lbound : min:T.t Maybe_bound.t -> T.t Validate.check
val validate_ubound : max:T.t Maybe_bound.t -> T.t Validate.check
val validate_bound :
min:T.t Maybe_bound.t ->
max:T.t Maybe_bound.t ->
T.t Validate.check
val validate_positive : T.t Validate.check
val validate_non_negative : T.t Validate.check
val validate_negative : T.t Validate.check
val validate_non_positive : T.t Validate.check