Result

Type Alias Result 

Source
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),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value