Function unwrap_bound

Source
fn unwrap_bound(b: Bound<&SystemTime>) -> Option<SystemTime>
Expand description

Helper: convert a Bound to its underlying value, if any.

This helper discards information about whether the bound was inclusive or exclusive. However, since SystemTime has sub-second precision, we really don’t care about what happens when the nanoseconds are equal to exactly 0.