pub type Result<T, E = BError> = Result<T, E>;Expand description
Syntax sugar for std::Result<T, BError>
Aliased Type§
pub enum Result<T, E = BError> {
Ok(T),
Err(E),
}Variants§
Trait Implementations§
Source§impl<T, E> OrErr<T, E> for Result<T, E>
impl<T, E> OrErr<T, E> for Result<T, E>
Source§fn or_err_with<C: Into<ImmutStr>, F: FnOnce() -> C>(
self,
et: ErrorType,
context: F,
) -> Result<T, BError>
fn or_err_with<C: Into<ImmutStr>, F: FnOnce() -> C>( self, et: ErrorType, context: F, ) -> Result<T, BError>
Similar to or_err(), but takes a closure, which is useful for constructing String.