Why is it no possible to return a reference from a closure?

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

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

    Empowering everyone to build reliable and efficient software.

    You can probably achieve the results you want by making a function helper with a higher rank lifetime and using it inside of your closure `https://github.com/rust-lang/rust/issues/58052

  • rfcs

    RFCs for changes to Rust

    This looks familiar, I wonder if it would work if a lifetime were able to be declared to constrain the input and output to the same lifetime.

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

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