Skip to main content

Module ring

Module ring 

Source
Expand description

Types that extend Semiring with subtraction.

§Examples

use fp_library::classes::Ring;

assert_eq!(i32::subtract(5, 3), 2);

Traits§

Ring
A type class for types that extend Semiring with subtraction.

Functions§

negate
Negates a value (additive inverse).
subtract
Subtracts the second value from the first.