Teaching Rust | Part 3

Опубликовано: 13 Июнь 2026
на канале: Brent Westbrook
414
21

In this video, I continue helping my good friend ‪@CZPalmer‬ get started with programming using Rust. We refactor his geometry loading code to return Atom and Molecule structs and then loop over atoms to compute bond lengths.

Crawford projects: https://github.com/CrawfordGroup/Prog...
My website: https://bwestbro.com
Zach's config: https://gist.github.com/zpalmer618/b5...
Zach's project repo: https://github.com/zpalmer618/RustQC

Time stamps
00:00:00 Introduction
00:12:02 Introducing structs
00:23:59 (Emacs) Binding eglot-rename
00:25:57 Back to Rust, parsing into Atoms
00:59:11 Deriving Debug
01:06:55 Computing bond lengths
01:10:41 Function arguments
01:14:05 (Emacs) Setting evil-undo-system
01:15:59 Back to function arguments
01:21:08 Looping over Atoms
01:37:19 Enumerating iterators
01:50:51 Print formatting
01:53:27 Recap
01:57:04 Defining a method
01:59:44 Returning bond lengths
02:08:47 Wrapping up