Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FrancescoXX/rust-crush-bootcamp
/ functions
Functions
32 in github.com/FrancescoXX/rust-crush-bootcamp
⨍
Functions
32
◇
Types & classes
6
↓ 4 callers
Function
divide
This function "might" fail, so it returns a `Result`.
src/bin/18_error_handling.rs:19
↓ 4 callers
Function
process_message
A function that uses `match` on our `Message` enum
src/bin/17_match.rs:20
↓ 1 callers
Function
add_five
Functions with Return Values - We declare the return type after an arrow `->`.
src/bin/08_functions.rs:29
↓ 1 callers
Function
another_function
function with no parameters and no return value.
src/bin/08_functions.rs:14
↓ 1 callers
Function
calculate_length
(s: &String)
src/bin/10_borrowing_references.rs:12
↓ 1 callers
Function
calculate_length
(s: String)
src/bin/09_ownership_moving.rs:33
↓ 1 callers
Function
print_labeled_measurement
function with multiple parameters.
src/bin/08_functions.rs:24
↓ 1 callers
Function
print_value
function that takes one parameter.
src/bin/08_functions.rs:19
Function
change
This function "mutably borrows" a String
src/bin/10_borrowing_references.rs:68
Function
main
()
src/main.rs:14
Function
main
()
src/bin/01_hello_cargo.rs:11
Function
main
--- Primitive Types: Tuples --- 🔑 Key Concepts: - Groups multiple values of different types. - Have a fixed length (size cannot change). - Access el
src/bin/07_tuples.rs:9
Function
main
()
src/bin/14_control_flow_for.rs:10
Function
main
()
src/bin/16_enums.rs:38
Function
main
--- `if` Expressions --- 🔑 Key Concepts: - Used for conditional branching. - Syntax: `if condition { ... } else if condition2 { ... } else { ... }`.
src/bin/11_control_flow_if.rs:11
Function
main
The `main` Function is the entry point. It takes no parameters and returns nothing.
src/bin/08_functions.rs:38
Function
main
()
src/bin/15_structs.rs:20
Function
main
()
src/bin/10_borrowing_references.rs:18
Function
main
()
src/bin/20_collections_strings.rs:12
Function
main
()
src/bin/03_constants.rs:15
Function
main
Variables 🔑 Key Concepts: - Declared using `let`. - Immutable by default; they cannot be changed after being assigned. - Use the `mut` keyword to ma
src/bin/02_variables.rs:10
Function
main
--- Primitive Types: Scalar --- 🔑 Key Concepts: - They Represent a single value. - 4 main types: Integers, Floats, Booleans, Characters. - Staticall
src/bin/05_primitive_scalar_types.rs:9
Function
main
()
src/bin/09_ownership_moving.rs:10
Function
main
()
src/bin/21_collections_hashmaps.rs:17
Function
main
()
src/bin/19_collections_vectors.rs:14
Function
main
()
src/bin/04_shadowing.rs:11
Function
main
()
src/bin/12_control_flow_loop.rs:9
Function
main
()
src/bin/13_control_flow_while.rs:9
Function
main
()
src/bin/17_match.rs:41
Function
main
()
src/bin/18_error_handling.rs:27
Function
main
--- Primitive Types: Arrays --- 🔑 Key Concepts: - Groups multiple values of the same type. - Have fixed length (size cannot change). - Type is annot
src/bin/06_arrays.rs:10
Function
try_divide
the ? operator (brief mention)
src/bin/18_error_handling.rs:76