Skip to main content

Result

Type Alias Result 

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

Custom Result type alias that uses RLibError as the default error type.

This is a convenience type alias that allows functions to return Result<T> instead of Result<T, RLibError>, making function signatures cleaner throughout the codebase.

Aliased Type§

pub enum Result<T, E = RLibError> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value