Skip to content

Rust makes it hard to create blanket trait impls #60

@teor2345

Description

@teor2345

This impacts interop tools, but also Rust frameworks like Bevy.

Specifically:

  • it is easy for blanket impls to overlap, cause other code to be ambiguous, or other impls to overlap
  • it is hard to create mutually exclusive blanket impls for categories of types, but there are workarounds
  • specialisation isn't stable, and the workarounds aren't ergonomic
  • there is a lot of boilerplate code involved, particularly in some workarounds

Background:

Metadata

Metadata

Assignees

No one assigned

    Labels

    l-rustChanges that are mainly in Rustp-ergonomicsProblems that make interop harder to usep-semanticsLanguage semantics differencest-problem-statementA description of an interop problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions