Skip to main content

except_to_lean

Function except_to_lean 

Source
pub unsafe fn except_to_lean<T, E>(
    v: Result<T, E>,
    fe: impl FnOnce(E) -> Obj,
    fa: impl FnOnce(T) -> Obj,
) -> Obj
Expand description

Except ε α (error is constructor 0, ok is 1).