Registry / utility / forward-ref

forward-ref

JSON →
library1.0.0rscratesunverified

Provides forward_ref_* macros for easier implementation of operator overloading in Rust.

# Cargo.toml [dependencies] forward_ref = "1.0.0"
INSTALL
IMPORT
SIG · FORWARD-REF
F
forward-ref
utilityrustv1.0.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.

forward_ref_binop
use forward_ref::forward_ref_binop;

Demonstrates using forward_ref_binop to implement operator overloading for references.

use forward_ref::forward_ref_binop; forward_ref_binop!(impl Add for MyType, MyType); fn main() { let a = MyType(1); let b = MyType(2); let _c = &a + &b; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources