/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.vegardno.net
| | qsantos.fr

This article will quickly explain the Rust types [T; N], &[T; N], &[T], Vec, &Vec with C code, and what the str, &str, String, OsString and CString add. Arrays and Slices Rust C [T; N] (array)Example: [i32; 100]Allocated on the stack T[N]Example: int[100]Allocated on the stack &[T; N] (array reference)Example: &[i32; 100]N is tracked at ... Continue reading Rust Strings for C Programmers
4.8 parsecs

Travel
| |
| | thasso.xyz

My personal blog about things I find interesting. Hit me up!
5.4 parsecs

Travel
| |
| | www.foonathan.net

Just like regular function parameters, template parameters can also have default parameters. For class templates, this behaves mostly just like default function arguments: if you pass fewer template arguments than required, default template arguments are used to fill the remaining places. However, for function templates, it gets more complicated as template parameters for functions can be deduced by the normal function arguments. This leads to some interesting side-effects. In particular, default argumen...
6.3 parsecs

Travel
| |
| | nnethercote.github.io

[AI summary] The text explains the basics of benchmarking in Rust, covering workload selection, tools like criterion, and the trade-offs between different performance metrics.
21.2 parsecs

Travel
|