#operator-overloading #operator #overloading #ops #op

forward_ref

Rust's forward_ref_* macros for easier implementation of operator overloading

1 stable release

1.0.0 Jun 12, 2021

#1089 in Rust patterns

Download history 8162/week @ 2023-12-14 4323/week @ 2023-12-21 5379/week @ 2023-12-28 8304/week @ 2024-01-04 9007/week @ 2024-01-11 8842/week @ 2024-01-18 7974/week @ 2024-01-25 9304/week @ 2024-02-01 12358/week @ 2024-02-08 10340/week @ 2024-02-15 8985/week @ 2024-02-22 7430/week @ 2024-02-29 9259/week @ 2024-03-07 10141/week @ 2024-03-14 8073/week @ 2024-03-21 5458/week @ 2024-03-28

34,706 downloads per month
Used in 596 crates (8 directly)

MIT/Apache

8KB

forward_ref

Rust's forward_ref_* macros for easier implementation of operator overloading in the form used by standard types.

License

Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.


lib.rs:

Macros to simplify extending operator traits over references.

Adapted from the Rust core library internal_macros.rs to remove standard library internal attribute annotations and add usage documentation.

No runtime deps