Is it an anti-pattern to use traits the way "extension methods" are used in c#?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pipe-trait

    Make it possible to chain regular functions

  • Ever since I created pipe-trait, I reply on it to make standalone functions chainable.

  • extend

    Create extensions for types you don't own with extension traits but without the boilerplate

  • In fact I maintain a little crate that makes it easier to make such extension traits https://github.com/davidpdrsn/extend

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts