Skip to content
TILens What matters today in tech v0.4.0
Theme

Topic - Edition

Rust news

1 items on 10 Jul 2026
Rust

There should be a primitive int / float trait in core / stdlib

This would be useful in cases were you want to use / store a number but don't care about a specific type of number for example: /// add two integers together pub fn add<T: PrimitiveInt>(x: T, y: T) -> T { x + y } This…

Source: Rust Internals Forum cheese_space