Registry / utility / impl-ops

impl-ops

JSON →
library0.1.1rscratesunverified

Macros for easy operator overloading in Rust.

# Cargo.toml [dependencies] impl_ops = "0.1.1"
INSTALL
IMPORT
SIG · IMPL-OPS
I
impl-ops
utilityrustv0.1.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.

impl_ops
use impl_ops::impl_ops;

Define operator overloads using macros.

use impl_ops::impl_ops; struct MyType; impl_ops!(impl Add<MyType> for MyType { fn add(self, rhs: MyType) -> MyType { MyType } }); fn main() { let _ = MyType + MyType; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
impl-ops — cargo add impl-ops · libregistry