Registry / utility / defmac

defmac

JSON →
library0.2.1rscratesunverified

Macro to define lambda-like macros inline in Rust.

# Cargo.toml [dependencies] defmac = "0.2.1"
INSTALL
IMPORT
SIG · DEFMAC
D
defmac
utilityrustv0.2.1
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.

defmac
use defmac::defmac;

Define an inline lambda-like macro.

use defmac::defmac; fn main() { defmac!(square x => x * x); println!("{}", square!(5)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
defmac — cargo add defmac · libregistry