#const #constants #daily #life #value

no-std common_consts

Constants used in daily life

1 unstable release

0.1.0 Sep 16, 2023

#382 in No standard library

MIT/Apache

7KB

common_consts

Constants used in daily life.

The author of this crate is not good at English.
Forgive me if the document is hard to read.

Words that express quantities in daily conversations are often used in source code as well. Since it is tedious to define constants for those magic numbers in each project, we collect them here.

Values

Quantity values (In qv module).

  • ZERO
  • FEW
  • SOME
  • SEVERAL
  • HANDFUL
  • MANY

Frequency values (In fv module).

  • NEVER
  • ALMOST_NEVER
  • RARELY
  • OCCASIONALLY
  • SOMETIMES
  • OFTEN
  • ALMOST
  • ALWAYS

Notes

Specific values for each constants may change in future versions.


lib.rs:

Constants used in daily life.

No runtime deps