I'd like to impose an "integers only" trait bound. A while back someone told me about the num crate, and it's really nifty -- but I'm having some trouble wrapping my head around this one:
There’s different kinds of integers. You could be referring to just the primitive integer types i.e. something like u8, u16, etc. and i8, i16, etc.. You could also be referring to more general cases of integers, including arbitrarily sized ones like e.g. from the num-bigint crate. Well — okay — that one wouldn’t be Bounded, but maybe you want to start counting at zero anyways?