Snapshot · Oct 24, 2026 · Frozen documentation
DurationDestination
Requires exact target-type construction from exact integer or finite IEEE time facts.
Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →
Module std.time
import std.time;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
DurationDestination
pub concept DurationDestination<Self>Requires exact target-type construction from exact integer or finite IEEE time facts.
This compile-time structural protocol preserves caller-selected duration type and unit without a runtime witness or implicit nominal conversion. Implementors must check representation range and honor Exact/Floor/Ceil/NearestEven semantics. Finite error paths must never produce an endless duration. Self: Concrete destination duration type.
Documentation snapshot: October 24, 2026 About versions ↗