Skip to content

Support the assignment operator traits like AddAssign #173

Closed
@cuviper

Description

@cuviper

These have been recently stabilized in rust-lang/rust#28235. We should at least add support for these to our concrete types.

We may also want to require them in our traits where we already require the basic Add etc., although I'm not sure if that's too much to impose on outside types implementing our traits. It could instead be something new like NumAssign: Num + AddAssign + SubAssign + ...

We'll have to raise our baseline Rust version to 1.8 (once it's released) to support assignment operators, but this feature may be useful enough to finally justify moving up. That would also enable a few other changes we've had blocked on Rust 1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions