use pipe_op::pipe; fn add(a: usize, b: usize) -> Result> { Ok(a + b) } fn main() -> Result<(), Box>{ let e = 10; assert_eq!(pipe!(e, add(10)?), 20); Ok(()) }