Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, HammerworkError>;
Expand description

Convenient type alias for Results with HammerworkError as the error type.

This is used throughout the crate for consistent error handling.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(HammerworkError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(HammerworkError)

Contains the error value