Tag: rustDec 1, 2022Booleans in Rust Booleans in Rust Boolean defined as -> bool literals are -> true or false Booleans are not integers so don't try and use math on them,... 3/15/2024 RustProgrammingDec 1, 2022Cargo Clippy for Rust Cargo Clippy for Rust Cargo Clippy this tools helps to check for idiomatic code. it also checks for correctness errors, even if code compiles. It also checks... 3/15/2024 ProgrammingRustDec 1, 2022Character Types in Rust Character Types in Rust Character type char could be anything from sound, icon, action, letters. char consists of 4 bytes. typically makes characters UCS-4/UTF-32 types character literals are specified... 3/15/2024 RustProgrammingDec 1, 2022Closures in Rust Closures in Rust Closures inspired by ruby and smalltalk closure is an anonymous function that can borrow or capture data from the scope it is... 3/15/2024 ProgrammingRustDec 1, 2022Collections in Rust Collections in Rust Collections Vectors Vec -> Vector. Vecors are the most commonly used collection. Define the vector type in... 3/15/2024 RustProgrammingDec 1, 2022Control Flow in Rust Control Flow in Rust Control Flow control flow is great in rust Rust doesn't like type coersion the condition must resolve to a boolean chaining condition else if finish... 3/15/2024 ProgrammingRustDec 1, 2022Data Structures in Rust Data Structures in Rust https://www.youtube.com/watch?v=1ZwbHo5HSzg&list=PLTgRMOcmRb3M0h-KpgqJuKl5WG4KgtZio data structures are critical to good programming we can use pathfinding ECS ... 3/15/2024 RustProgrammingData-StructuresDec 1, 2022Documentation in Rust Documentation in Rust Documentation use the command cargo doc --no-deps --open the extra stuff only generates docs for your code. links are wikilinks adding backticks makes... 3/15/2024 RustProgrammingDec 1, 2022Enumns in Rust Enumns in Rust Enums Enums in rust are more like algebraic datatypes in haskel than C like enums. enum Color { Red, Green, Blue, } the real power of enum... 3/15/2024 RustProgrammingDec 1, 2022FLoats in Rust FLoats in Rust Floats f32 - f64 f32 has less precision is often faster and not supported by all architectures f64 has much more precision but... 3/15/2024 RustProgramming«««12345»»»