No video

Create a slice from a reference without copying in Rust - Rust Pro Tips

  Рет қаралды 456

GeekLaunch

GeekLaunch

Күн бұрын

If you have a reference to some data and you want to pass it to a function that takes a slice, you can use std::array::from_ref to cheaply create a slice without copying.
Docs: doc.rust-lang....
geeklaunch.io/
Follow GeekLaunch on Twitter: / geek_launch
Not a geek? Start today!

Пікірлер: 4
@muhammadyosinmahmudjonov8635
@muhammadyosinmahmudjonov8635 11 ай бұрын
Which Font do you use? is it free
@GeekLaunch
@GeekLaunch 11 ай бұрын
It is free! It is called Victor Mono: rubjo.github.io/victor-mono/
@nikolasretkovic6183
@nikolasretkovic6183 11 ай бұрын
Theme name? 🤩
@GeekLaunch
@GeekLaunch 11 ай бұрын
Catppuccin. marketplace.visualstudio.com/items?itemName=Catppuccin.catppuccin-vsc
Test your Readme with Cargo - Rust Pro Tips
3:17
GeekLaunch
Рет қаралды 144
Make invalid states unrepresentable: the untaught revelation
14:48
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 14 МЛН
Top 10 Rust Iterators That You Should Be Using!
8:00
SvelteRust
Рет қаралды 2,1 М.
Understanding Ownership in Rust
25:31
Let's Get Rusty
Рет қаралды 251 М.
Strings in Rust FINALLY EXPLAINED!
21:40
Let's Get Rusty
Рет қаралды 75 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 164 М.
Generic Types in Rust
15:18
Let's Get Rusty
Рет қаралды 68 М.
Rust's Alien Data Types 👽 Box, Rc, Arc
11:54
Code to the Moon
Рет қаралды 141 М.
Write Rustier Rust
12:13
chris biscardi
Рет қаралды 37 М.
Jonathan Blow on mitigating buffer overflow risks
15:07
Blow Fan Too
Рет қаралды 26 М.
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 142 М.
what even is a "reference"?
5:44
Low Level Learning
Рет қаралды 127 М.
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН