God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: Static_str_ops: &'static str and non-const operations in Rust https://ift.tt/57UjVEs
Show HN: Static_str_ops: &'static str and non-const operations in Rust It is often asked by Rust programmer that how to create `&'static str` in Rust with non-const operations at runtime, e.g., returns the result of `format!()` as `&'static str`, rather than `String`. The crate static_str_ops addressed this issue, by allocating a hash set under the hood, and return the reference as the result. Along with this crate, a set of utilities are provided, including `static_format!`, `static_concat!`, and `staticize_once!` which can be used to initialize static strings with the `call_once` semantic. https://ift.tt/bXkUVFZ August 15, 2023 at 07:11PM
Subscribe to:
Post Comments (Atom)
Show HN: Aerial-autonomy-stack – open-source perception-based drone swarms https://ift.tt/2mJKc9G
Show HN: Aerial-autonomy-stack – open-source perception-based drone swarms Combining (1) open-source autopilots with (2) open-source ROS2 si...
-
submitted by /u/Dull_Tonight [link] [comments] source https://www.reddit.com/r/worldnews/comments/pehy48/housing_secretary_robert_je...
-
Show HN: The Ordeal Visualizer I'm this time-blind... https://ift.tt/iNM3UDr July 8, 2025 at 12:20AM
-
Show HN: A Spotify player in the terminal with full feature parity https://ift.tt/oZgrl1Q July 18, 2024 at 02:57AM
No comments:
Post a Comment