Expand description
Extension traits adding small conveniences to std and num types.
Traits§
- Clone
And - Adds
clone_and(f): cloneself, apply the mutationf, and return the modified clone — for building variants without mutating the original. - DivRound
- Division rounded to the nearest integer.
- Into
Digits - Decompose a non-negative integer into its base-10 digits.
- Iterator
Ext - Extension methods on
Iterator. - Range
Ext - Shift the endpoints of a
RangeorRangeInclusiveby independent left/right offsets.
Functions§
- empty_
range - The empty
RangeInclusive<isize>, for a grading support with no elements.start > end, so it yields nothing andcontainsis always false.