Skip to main content

Result

Type Alias Result 

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

Convenience result alias for functions that can fail with Error.

Architectural intent: Standardizes the error channel across the codebase so APIs clearly communicate that failures are domain-specific Hexz errors rather than arbitrary std errors.

Constraints: Callers should treat Error as opaque and avoid depending on the exact display text; matching on variants is preferred for structured handling.

Side effects: No additional side effects beyond those of the underlying operation whose result is being wrapped.

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