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

forward_ref

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

1 stable release

1.0.0 Jun 12, 2021

#868 in Rust patterns

Download history 6405/week @ 2024-07-22 6183/week @ 2024-07-29 5906/week @ 2024-08-05 7559/week @ 2024-08-12 5814/week @ 2024-08-19 5871/week @ 2024-08-26 5838/week @ 2024-09-02 5595/week @ 2024-09-09 5010/week @ 2024-09-16 7172/week @ 2024-09-23 4461/week @ 2024-09-30 4176/week @ 2024-10-07 5218/week @ 2024-10-14 4307/week @ 2024-10-21 5244/week @ 2024-10-28 4519/week @ 2024-11-04

19,491 downloads per month
Used in 571 crates (7 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