Тёмный

Rc and RefCell Smart Pointers - Rust 

danlogs
Подписаться 3,1 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@anujdhiman6640
@anujdhiman6640 3 месяца назад
Hi Danlogs, Nice explanation but i would recommend one thing to show output automatically without cargo run , install cargo watch and run he command - cargo watch -q -c -x 'run -q' It will save your time in video too.
@MrMurilosopa
@MrMurilosopa 2 года назад
Great explanation! Thank you :)
@davec8385
@davec8385 2 года назад
Thanks for the great video! I hope you have a great rest of your day
@flippert0
@flippert0 8 месяцев назад
Great insights, thanks!
@luiscarlosjayk
@luiscarlosjayk 5 месяцев назад
Nice explanation!!!
@waterearth8562
@waterearth8562 2 года назад
consider use nerd fonts so the unicode before master will show. Also, try rust-analyzer. :)
@danlogs
@danlogs 2 года назад
Thanks for the suggestions~ I normally do use them, but this is a new computer and I didn't notice them missing until after the recording 😅
@MatManugas
@MatManugas 2 года назад
the future ruiner of JavaScript, I love it!
@markday3145
@markday3145 Год назад
3:50 Wouldn't n3.clone() work just as well as Rc::clone(&n3) ? The first looks a little cleaner to me. But is there a reason to prefer the second form?
@danlogs
@danlogs Год назад
They're equivalent in terms of functionality, but some may argue that one could be more readable than the other (i.e., 𝚁𝚌::𝚌𝚕𝚘𝚗𝚎(&𝚗𝟹) is clearer in its intent of simply creating a shared reference and not a deep clone the data as .𝚌𝚕𝚘𝚗𝚎() sometimes does.)
@roxferesr
@roxferesr 2 месяца назад
You are passing Referenced to the RC.... Wouldn't just using references work in the original code without the RC
Далее
Rust's Alien Data Types 👽 Box, Rc, Arc
11:54
Просмотров 145 тыс.
Rust Lifetimes
26:52
Просмотров 51 тыс.
Deref and Drop Traits - Rust
22:23
Просмотров 2,8 тыс.
You Should Really Know These Traits in Rust
18:36
Просмотров 14 тыс.
but what is 'a lifetime?
12:20
Просмотров 73 тыс.
Rust Data Modelling Without Classes
11:25
Просмотров 173 тыс.
Rust Functions Are Weird (But Be Glad)
19:52
Просмотров 136 тыс.