3 ms·
In the case of a Galois field I think you're always intentionally reaching for the tool, you use it because of those implementation details. Making sure the str
by couchand 5y ago
In the case of a Galois field I think you're always intentionally reaching for the tool, you use it because of those implementation details. Making sure the struct's name clarifies that that's how the arithmetic works is appropriate.
In that case you definitely want to implement the standard Add trait, so the user can naturally write their maths. They've already opted in to the behavior with a call to Gf2::from.