What is the proper guidance on using generics as parameters for an API

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • api-guidelines

    Rust API guidelines (by rust-lang)

  • I'm currently writing an API and using the API guidelines book. On the Flexibility page, there's a section on using generics as function parameters to minimize assumptions. The issue that I'm having is that the only example it gives is std::fs::File::open. Specifically, I want to know what is the "standard" way to use generics as parameters?

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB 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

  • CBMC: C bounded model checker. (2021)

    2 projects | news.ycombinator.com | 4 May 2024
  • Symfony 7 vs. .NET 8 - same-same but different?

    1 project | dev.to | 3 May 2024
  • rbspy: A Sampling CPU Profiler for Ruby

    1 project | news.ycombinator.com | 3 May 2024
  • Komorebi – A tiling window manager for Windows written in Rust

    1 project | news.ycombinator.com | 3 May 2024
  • Rust: Box Is a Unique Type

    7 projects | news.ycombinator.com | 2 May 2024