package core

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Comparable.With_zeroSource

Parameters

module T : sig ... end

Signature

include Base.Comparable.With_zero with type t := T.t
Sourceval is_positive : T.t -> bool
Sourceval is_non_negative : T.t -> bool
Sourceval is_negative : T.t -> bool
Sourceval is_non_positive : T.t -> bool
Sourceval sign : T.t -> Base.Sign.t

Returns Neg, Zero, or Pos in a way consistent with the above functions.

Sourceval validate_lbound : min:T.t Maybe_bound.t -> T.t Validate.check
Sourceval validate_ubound : max:T.t Maybe_bound.t -> T.t Validate.check
Sourceval validate_bound : min:T.t Maybe_bound.t -> max:T.t Maybe_bound.t -> T.t Validate.check
Sourceval validate_positive : T.t Validate.check
Sourceval validate_non_negative : T.t Validate.check
Sourceval validate_negative : T.t Validate.check
Sourceval validate_non_positive : T.t Validate.check
OCaml

Innovation. Community. Security.