Group

Derive Macro Group 

Source
#[derive(Group)]
Expand description

Derive macro for Group.

Implements Group for a struct by inverting each field componentwise.

§Example

#[derive(Semigroup, Monoid, Group)]
struct Foo {
    a: i32,  // inverse = negation
    b: MyGroup,  // custom group
}