Macro grin_core::tee

source ·
macro_rules! tee {
    ($thing:ident, $thing_expr:expr) => { ... };
}
Expand description

Allows the conversion of an expression that doesn’t return anything to one that returns the provided identifier. Example: let foo = vec![1,2,3] println!(tee!(foo, foo.append(vec![3,4,5]))