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

How to coerce the generic type of a `Rc` inside another `Rc`?

Here is the usage. I want to have a DataSource<dyn Trait> instead of the origin type, but as operator does not work here. Unsafe code is allowed, but I still have no idea. The trait is provided externally, that is to say I don't know what trait the…

rust-users-forum

GAT Box<dyn ...> lifetime problem

Consider the trait below. A Parser is a type which can take an input string and turn it into a bunch of candidate result. Each candidate stores: (1) the byte index up until which the result was found, and (2) a number of substrings that have been…

rust-users-forum

A datetime library for Rust

Jiff is a datetime library for Rust that encourages you to jump into the pit of success. Jiff automatically handles many common problems related to daylight saving time by putting time zone handling front and center into the API. Jiff has already…

burntsushi

Get all sums of array values, along with the indices of the elements

fn main() { let data: [u8;4] = [2, 5, 7, 8]; let dlen: usize = data.len(); // 4 let cnt_data_comb: u8 = 2_u8.pow(4) - 1; // 2^4 -1 = 15 // [A] // I can get the quantities in the groups like this: let mut c; for i in 0..dlen { println!(); c =…

rust-users-forum

Deploying an Axum service on a Canadian VPS

I'm getting ready to deploy a small Axum web service for a client in Canada, and it stores customer details. PIPEDA covers most private businesses here, and BC public bodies and Quebec's Law 25 add stricter rules about where personal information is…

rust-users-forum

How to handle partial cleanup?

Greetings friends. Recently I've had some code like this: struct ComplexStruct; impl ComplexStruct { fn claim_singleton() -> Result<(), String> { println!("Claiming singleton..."); Ok(()) } fn write_temp() -> Result<(), String> { println!("Writing…

rust-users-forum

Embedded HALs and safety

I am currently writing Rust code for a microcontroller, and I am trying to get a better understanding of how safety works here. I am also writing a blog post alongside it, so I want to be precise about it. I have the following example code: struct…

rust-internals

444 items available