Ordinal
represents a bounded value for milliseconds, ranging from 0 to 999 milliseconds.
Equations
Instances For
Equations
Equations
- Std.Time.Millisecond.instInhabitedOrdinal = { default := 0 }
Equations
- Std.Time.Millisecond.instOfNatOffset = { ofNat := Std.Time.Internal.UnitVal.ofNat n }
@[inline]
Creates an Ordinal
from a natural number, ensuring the value is within bounds.