shithub: mc

ref: d7d95f9f1db8434f40d5ac3c81ba486223e3893b
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 */