I want to implement a Rust struct that provides the [index]=
operation.
For example
foo[bar] = zot
What trait does foo
need to implement here? Is it perhaps some combination of std::ops
?
I want to implement a Rust struct that provides the [index]=
operation.
For example
foo[bar] = zot
What trait does foo
need to implement here? Is it perhaps some combination of std::ops
?