numwit

Crates.ionumwit
lib.rsnumwit
version0.1.0
sourcesrc
created_at2023-01-12 03:27:54.751966
updated_at2023-01-12 03:27:54.751966
descriptionwitness types and operations for numbers which are positive or negative (but not zero)
homepage
repository
max_upload_size
id756860
size29,056
Aatif Syed (aatifsyed)

documentation

README

numwit

Witness types and operations for numbers which are [Positive] or [Negative], but not zero.

Operation LHS RHS Output Assignable?
Add Positive Positive Positive Yes
Negative Negative Negative Yes
Positive Negative ? No
Negative Positive ? No
Positive impl Unsigned Positive Yes
Negative impl Unsigned ? No
Sub Positive Positive ? No
Negative Negative ? No
Positive Negative Positive Yes
Negative Positive Negative Yes
Positive impl Unsigned ? No
Negative impl Unsigned Negative Yes
Mul Positive Positive Positive Yes
Negative Negative Positive No
Positive Negative Negative No
Negative Positive Negative Yes
Positive impl Unsigned ? No
Negative impl Unsigned ? No
Div Positive Positive Positive Yes
Negative Negative Positive No
Positive Negative Negative No
Negative Positive Negative Yes
Positive impl Unsigned Positive Yes
Negative impl Unsigned Negative Yes
Neg Positive Negative
Negative Positive

License: MIT or Apache-2.0

Commit count: 0

cargo fmt