Skip to content
TILens What matters today in tech v0.4.0
Theme
Topics - Rust
Calendar · NOV 2026
‹ Nov 2026 ›
  1. JAN
  2. FEB
  3. MAR
  1. APR
  2. MAY
  3. JUN
  1. JUL
  2. AUG
  3. SEP
  1. OCT
  2. NOV
  3. DEC
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Favorites (0)

Community stream

Community

Follow-up: tooling to detect failed devirtualization?

I've made a benchmark of the Rust overhead that can be caused by vtable calls. The reality, however, is that Rust can often do a good job of devirtualizing such calls. This benchmark shows an extreme scenario where devirtualization fails. Static vs…

rust-users-forum

Strategies for dyn trait objects with optional behavior?

I have a trait with optional behavior, and I'm trying to figure out how to use it behind a trait object. trait Trait { fn required_behavior(&self); fn optional_behavior(&self) where Self: Optional; } trait Optional: Trait {} Unfortunately, this…

rust-users-forum

Array initialization post declaration

Hello, this is my first forum post. I've been reading through the rust book and trying to work on some basic implementations of linear algebra stuff in rust and came across this code that doesn't compile fn main() { let a: [usize; 1]; a[0] = 2;…

rust-users-forum

About Bevy textbook

Does anyone know some books about how to program Bevy? I don't want to read source code, it's so difficult and I'll go bananas 2 posts - 2 participants Read full topic

rust-users-forum

Type erasure and dyn lifetime in a NonNull/Box struct field

I'm new to Rust, and I am trying to understand dyn object lifetimes when inside a Box or NonNull. My goal is to write an adapter for a C API. I have a few C struct types: #[repr(C)] struct ConcreteA { // generated by bindgen } #[repr(C)] struct…

rust-users-forum

Arena's and alignment

Hi rustaceans! I wanted to build an arena allocator as a little exercise for myself and I came up with this: use std::{alloc::{Layout, alloc, dealloc, handle_alloc_error}, ptr::NonNull}; use std::cell::Cell; pub struct Arena { ptr:…

rust-users-forum

Getting a list of file with an error from cargo-build?

Hey all, I usually use vim as my code editor. Is there a way to easily make cargo build output a list of files that have errors so that I can just feed it into another CLI program? I am not seeing anything obvious in cargo build --help. As an…

rust-users-forum

444 items available