Type Alias Result
Source pub type Result<T> = Result<T, Error>;
Expand description
Result alias that uses Error as the failure type.
§Examples
use arena_lib::{Error, Result};
fn checked() -> Result<u32> {
Err(Error::StaleIndex)
}
assert!(checked().is_err());
pub enum Result<T> {
Ok(T),
Err(Error),
}
Contains the success value