traits
Common traits for generic functionality
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module type Trait = sig ... end
Ord
implementation signature
module type T = sig ... end
Signature that defines Ord
conformity
Defines a default implementation of Trait
over an existing PartialOrd.Trait
definition
val cmp : (module T with type Ord.t = 'a) -> 'a0 -> 'a1 -> Ordering.t
Compares values x
and y
with module M
and returns an ordering, left to right