shithub: mc

ref: 3d4d7c4ca9eb30d468d71c26f4b4588c800c9d1c
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(Tcflt,	"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 */
Tc(Tciter,	"iterable")     /* can be iterated over */
Tc(Tcdisp,	"disposable")   /* automatically disposable */