pub trait NegativeErrorExt {
    type Out;

    // Required method
    fn negative_to_error(self) -> Result<Self::Out, NumericError>;
}

Required Associated Types§

Required Methods§

source

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

Implementors§

source§

impl<T> NegativeErrorExt for T
where T: Zero + PartialOrd + TryInto<isize>,

§

type Out = T