defmac 0.2.1

A macro to define lambda-like macros inline.
Documentation
1
2
3
4
5
6
7

#[test]
fn full_path() {
    defmac::defmac! { len x => x.len() }

    assert_eq!(len!(&[1, 2]), 2);
}