/// Creates a non-zero if the given value is not zero.
Creates a non-zero if the given value is not zero.
Creates a non - zero if the given value is not zero .
pub fn new(d: Duration) -> Option<NonZeroDuration> {
        if d == ZERO_DURATION {
            return None;
        }
        Some(NonZeroDuration(d))
    }
pub fn new ( d : Duration ) -> Option < NonZeroDuration > { if d == ZERO_DURATION { return None ; } Some ( NonZeroDuration ( d ) ) }
Creates a non-zero if the given value is not zero.
Creates a non - zero if the given value is not zero .
d
Duration