#operators #op #ops #overload #overloading

forward_ref

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

1 stable release

1.0.0 Jun 12, 2021

#535 in Rust patterns

Download history 3548/week @ 2022-06-08 3460/week @ 2022-06-15 3552/week @ 2022-06-22 3138/week @ 2022-06-29 4253/week @ 2022-07-06 5961/week @ 2022-07-13 6461/week @ 2022-07-20 5328/week @ 2022-07-27 7152/week @ 2022-08-03 9091/week @ 2022-08-10 7321/week @ 2022-08-17 8218/week @ 2022-08-24 8019/week @ 2022-08-31 8326/week @ 2022-09-07 8947/week @ 2022-09-14 5682/week @ 2022-09-21

32,287 downloads per month
Used in 179 crates (4 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