Rust doesn’t support default function arguments. Or does it?

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
  • abi_stable_crates

    Rust-to-Rust ffi,ffi-safe equivalents of std types,and creating libraries loaded at startup.

  • Here’s abi_stable_crates, enabling Rust API to be exported with a stable ABI

  • rust

    Empowering everyone to build reliable and efficient software.

  • Indeed there's an open issue about changing the mangling: https://github.com/rust-lang/rust/issues/60705 . The current proposal has this phrase:

  • 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
  • rfcs

    RFCs for changes to Rust (by michaelwoerister)

  • Indeed there's an open issue about changing the mangling: https://github.com/rust-lang/rust/issues/60705 . The current proposal has this phrase:

  • rust-default-arguments-benchmark

    A simple benchmark to evaluate the performance impact of using structs that implement Default as function arguments.

  • I've added the builder pattern to my benchmark. The results were that the 3 implementations were indistinguishable when function inlining was allowed. When inlining was not allowed, both the default trait pattern and the builder pattern suffered similar performance penalties (maybe those penalties are actually associated to having a struct as argument?).

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