Our great sponsors
-
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.
-
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.
Looks like this issue. (The return type of a Fn/FnMut/FnOnce is an associated type.)
I think they are talking about this one trick which the devs don't want you to know about. Note that while it looks like specialization, it works only in a few very limited cases and is quite fragile, so it's a hack, not a substitute for the real feature.
Some people care if a crate uses unsafe code and if so then how much, there's cargo-geiger for that. I generally don't bother, as I will usually spot any issues about segfaults or unsoundness or undefined behavior while skimming the crate's repo. The community has such a strong aversion to unsafe code that I don't really worry about it otherwise.
I recommend this page: https://github.com/pretzelhammer/rust-blog/blob/master/posts/common-rust-lifetime-misconceptions.md It explains what ’static actually means and some other frequent misconceptions.
The online version of the book is almost the same but more up to date: https://doc.rust-lang.org/book/
im looking at indextree atm: https://github.com/saschagrunert/indextree
You should try egui. There's a link to a template in the readme. It uses the same function to both draw the GUI and process the inputs. Within that function, if you, call functions to draw individual GUI elements, and the return values of those functions are the GUI inputs (ie. whether that element was clicked, hovered, draged, etc.).
Related posts
- Implement React v18 from Scratch Using WASM and Rust - [1] Build the Project
- Learning Rust: A clean start
- A Beginner’s Guide to the Solana Web3 Stack
- The Rust Programming Language has recently made it possible to compile your code to the PS Vita! This potentially mean an increase in projects released as Rust is to a certain extent easier than the C programming language. I’m excited about this!
- How does async Rust work