Function build_nonzero

Source
fn build_nonzero<NZ, I>(
    spec: Option<I>,
    default: I,
    field: &'static str,
) -> Result<NZ, ConfigBuildError>
where I: TryInto<NZ>,
Expand description

Helper for building a NonZero* field