pub trait SentinelError: Sized {
    fn check(self) -> Result<Self, Error>;
}
Expand description

Represents a type which has some sentinel values which represent errors.

Implementations are provided for i32 and f64 based on PROS’s sentinel error values, represented by PROS_ERR and PROS_ERR_F in C/C++.

Required Methods

Checks if the type is a valid (success value), giving an appropriate error otherwise.

Implementations on Foreign Types

Implementors