Skip to content

Rust Function Overloading Macros

This repository is a Rust Foundation experiment in ergonomic function overloading in Rust.

The experiment uses macros to improve the ergonomics of the splat Rust language experiment. Technical details for the current stage of the experiment can be found on the Inside Rust blog.

Most of this code requires a recent nightly Rust compiler.

Quick Setup

rustup update nightly
git clone https://github.com/rustfoundation/overloading-macros
cd overloading-macros
rustup override set nightly
cargo build

Running Examples

Run individual example binaries with:

cargo run --bin <filename>

For example:

cargo run --bin multiple-args

关于

Rust macros for function overloading

Resources

Code of conduct

Contributing

Stars

1 star

关注者

1 watching

复刻s

发布

Used by

贡献者

Languages