Crates.io | alga_derive |
lib.rs | alga_derive |
version | 0.9.2 |
source | src |
created_at | 2017-03-29 22:05:36.086227 |
updated_at | 2020-03-02 08:54:36.583505 |
description | Derive attribute for implementing algebraic traits from the alga crate. |
homepage | |
repository | https://github.com/rustsim/alga |
max_upload_size | |
id | 9252 |
size | 33,552 |
alga-derive allows automatic deriving of traits provided by alga.
It supports deriving following alga traits:
AbstractQuasigroup
AbstractMonoid
AbstractSemigroup
AbstractGroup
AbstractGroupAbelian
AbstractRing
AbstractRingCommutative
AbstractField
The custom derive can also be used to generate quickcheck tests that check that algebraic properties are satisfied by the target of the derive.