pub type ComposableResult<T, E> = Result<T, ComposableError<E>>;Expand description
Convenience type alias for a Result with ComposableError.
This provides a more ergonomic way to work with Results that use ComposableError as the error type.
§Type Parameters
T: The success typeE: The core error type
§Examples
use rustica::error::{ComposableResult, ComposableError};
fn might_fail() -> ComposableResult<i32, &'static str> {
Err(ComposableError::new("Something went wrong"))
}Aliased Type§
pub enum ComposableResult<T, E> {
Ok(T),
Err(ComposableError<E>),
}