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

Why would `as_ref()` be required here rather than a reference?

After playing around with newtypes a bit, I'm curious about this use of the AsRef trait: impl PaliSearcher { pub fn new(index: &PaliIndex) -> Result<Self> { let reader = Self::reader(index.as_ref())?; let uid = index.uid_field()?; let contents =…

rust-users-forum

Correct format to use on a 'scene' file

Just got me wondering, similar to Godot's scene (.tscn) what existing format would be just as convenient when implementing a similar thing, which is to handle 'Node' trees and instancing another scene instead of writing your own custom format? i…

rust-users-forum

Convert ref-to-raw-pointer to ref-to-NonNull without transmute?

Consider this toy function: fn ptr_as_nonnull<T: ?Sized>(input: &*mut T) -> Option<&NonNull<T>> { if input.is_null() { None } else { // Is it possible to implement this without transmute? Some(unsafe { std::mem::transmute(input) }) } } Is that…

rust-users-forum

Render pipeline error wgpu

let render_pipeline_layout = device.create_pipeline_layout(&PipelineLayoutDescriptor { label: None, bind_group_layouts: &[Some(&default_bgl), Some(&camera_bgl)], immediate_size: 0, }); let shader = device.create_shader_module(include_wgsl!("shaders/s…

rust-users-forum

Why no Dependent Matrix Type?

Hello, I don't really know how to really introduce this topic. Background: I want to implement compile time safe matrix multiplication. For that i want to have a struct with const generics for the number of columns and rows. Then i want a function…

rust-users-forum

Rust abstractions for kernel sources

Hi, I just got my my kernel Rust enabled and have compiled a working minimal LKM, but see that I now need access to some of the kernel calls under the net framework. Which leads me to believe I need to create some Rust abstractions so that I can…

rust-users-forum

Trait object with associated types in field - requires generic param?

I currently have: trait ListModel { fn get_stuff(&self, row: i) -> Stuff; ... } struct List { model: Rc<dyn ListModel>, ... } I think I want to change my model to use row IDs instead of usize indices. If I do this: trait ListModel { type Key: Eq +…

rust-users-forum

Any thin wrapper around the Web Worker API?

Hi, I'm currently writing some audio decoding pipeline targeting wasm32-unknown-unknown. In the queue / jittering part, I wanna be able to have one task that pushes data as it comes (with all the network uncertainties), and another parallel task…

rust-users-forum

444 items available