Crate value[−][src]
Type-level constants for generic contexts.
These types implement From
, PartialEq
, and PartialOrd
so that
generic code can check if a value is zero, etc.
Structs
_0 |
Zero. |
_1 |
One. |
_2 |
Two. |
_45 |
Eighth turn in degrees. |
_90 |
Quarter turn in degrees. |
_180 |
Half turn in degrees. |
_270 |
Three-quarters turn in degrees. |
_360 |
Full turn in degrees. |
_180_rad |
Half circumference of unit circle (pi, tau/2). |
_270_rad |
Three-quarters circumference of unit circle (3pi/2, 3tau/4). |
_360_rad |
Circumference of unit circle (2pi, tau). |
_45_rad |
Eighth circumference of unit circle (pi/4, tau/8). |
_90_rad |
Quarter circumference of unit circle (pi/2, tau/4). |
Constants
_2pi |
2pi. |
_3pi_2 |
3pi/2. |
_3tau_4 |
3tau/4. |
_pi |
pi. |
_pi_2 |
pi/2. |
_pi_4 |
pi/4. |
_tau |
tau. |
_tau_2 |
tau/2. |
_tau_4 |
tau/4. |
_tau_8 |
tau/8. |