shithub: mc

ref: 0b0fb103248ec7b12b3a2b94d88b1fe7a0b4403e
dir: /parse/trait.def/

View raw version
/* Definitions of built in constraints */
Tc(Tcnum,       "numeric")      /* arith ops */
Tc(Tcint,       "integral")     /* behaves like an int, defaults to int as fallback */
Tc(Tcfloat,     "floating")     /* behaves like a float, defaults to float as fallback */
Tc(Tcidx,       "indexable")    /* indexable */
Tc(Tcslice,     "sliceable")    /* sliceable */
Tc(Tcfunc,      "function")     /* behaves like a function */