pub type Result<T> = Result<T, Error>;Expand description
A specialized Result type for tri_grid_sim operations.
This type alias is used throughout the crate for operations that can fail
with an Error. It reduces boilerplate compared to writing
Result<T, tri_grid_sim::Error> everywhere.
§Examples
use tri_grid_sim::{Grid, Result};
fn create_world() -> Result<Grid> {
Grid::new(10, 10)
}Aliased Type§
pub enum Result<T> {
Ok(T),
Err(Error),
}