MENU

Fun & Interesting

How Vec Works In Rust

BehindBlueScreen 4,108 1 month ago
Video Not Working? Fix It Now

Finally finished this video! I hope you enjoy it; it took me a long time to make it. Any and all constructive criticism and recommendations are encouraged. This is the first video in what I hope will be a series explaining a few Vec methods. Enjoy! :D Links: std - https://doc.rust-lang.org/std/ Vec - https://doc.rust-lang.org/std/vec/struct.Vec.html PhantomData - https://doc.rust-lang.org/std/marker/struct.PhantomData.html NonNull - https://doc.rust-lang.org/std/ptr/struct.NonNull.html pointer primitives - https://doc.rust-lang.org/std/primitive.pointer.html ptr module - https://doc.rust-lang.org/std/ptr/index.html Cliffle PhantomData Blog Post - https://cliffle.com/blog/rust-typestate/#variation-state-type-parameter PhantomData RFC - https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md#phantom-data #[rustc_promotable] - https://rust-lang.github.io/rfcs/3027-infallible-promotion.html#rationale-and-alternatives #[rustc_promotable] - https://github.com/rust-lang/const-eval/blob/master/promotion.md #[rustc_nounwind] - https://doc.rust-lang.org/std/intrinsics/index.html#unwinding #[rustc_allowed_through_unstable_modules] - https://doc.rust-lang.org/error_codes/E0789.html #[rustc_allowed_through_unstable_modules] RFC - https://github.com/rust-lang/rust/pull/99288 #[fundamental] - https://stackoverflow.com/questions/59022263/what-is-a-fundamental-type-in-rust #[fundamental] RFC - https://github.com/rust-lang/rust/issues/29635 #[rustc_specialization_trait] - https://std-dev-guide.rust-lang.org/policy/specialization.html #[rustc_coinductive] - https://rustc-dev-guide.rust-lang.org/solve/coinduction.html size_align - https://github.com/rust-lang/rust/pull/72189 size_align - https://github.com/rust-lang/rust/pull/79827 uint_impl (64 bits) - https://doc.rust-lang.org/src/core/num/mod.rs.html#1212-1234 checked_add - https://github.com/rust-lang/rust/pull/124114#issuecomment-2066173305 Ord trait - https://doc.rust-lang.org/std/cmp/trait.Ord.html Big O Notation Starter Pack: Wikipedia - https://en.wikipedia.org/wiki/Big_O_notation#:~:text=Big%20O%20notation%20is%20a,a%20particular%20value%20or%20infinity. Geeks4Geeks - https://www.geeksforgeeks.org/analysis-algorithms-big-o-analysis/ Reddit Thread - https://www.reddit.com/r/computerscience/comments/s7h2vc/can_someone_explain_to_me_big_o_notation_like_im/ Cheat Sheet - https://www.bigocheatsheet.com/ MIT Big O Lecture - https://web.mit.edu/16.070/www/lecture/big_o.pdf MIT Big Oh and Theta - https://ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/pages/lecture-22-big-oh-and-theta/ Amortized Wikipedia - https://en.wikipedia.org/wiki/Amortized_analysis Song Credits (Order of Appearance): Song: Prism Music by: bensound.com Artist: Theatre Of Delays License code: 3HQZTXW1NK31CPAN Song: Vanishing Hope Music by: Bensound.com/royalty-free-music Artist: FoePound License code: AY6MYSX4MMGXVYJX Song: Hope Music by https://www.bensound.com/free-music-for-videos Artist: Hugo Dujardin License code: YMJTL8TIFE9AGBPB Song: Last Stop Music I Use: Bensound.com/royalty-free-music Artist: Kneat License code: SYVAWTVG2QSRRIQG Song: Refract Music by Bensound.com Artist: Diffie Bosman License code: DRLALGRDDDHVNQBX Song: Evolution Music: https://www.bensound.com Artist: Benjamin Tissot License code: Z9UAS4Y8K7QKTSSY

Comment