pub trait NegativeErrorExt {
type Out;
// Required method
fn negative_to_error(self) -> Result<Self::Out, NumericError>;
}
Required Associated Types§
Required Methods§
sourcefn negative_to_error(self) -> Result<Self::Out, NumericError>
fn negative_to_error(self) -> Result<Self::Out, NumericError>
Convert to a Result that is successful if the input value is zero or positive, or a NumericError if it is negative