Registry / utility / fixed-macro

fixed-macro

JSON →
library1.2.0rscratesunverified

Macros for creating fixed-point constants for types in the `fixed` crate.

# Cargo.toml [dependencies] fixed-macro = "1.2.0"
INSTALL
IMPORT
SIG · FIXED-MACRO
F
fixed-macro
utilityrustv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fixed
use fixed_macro::fixed;

Creates a fixed-point constant using the fixed macro.

use fixed_macro::fixed; use fixed::types::I16F16; fn main() { let val: I16F16 = fixed!(1.5: I16F16); println!("{}", val); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fixed-macro — cargo add fixed-macro · libregistry