MCPcopy Create free account

hub / github.com/Mathieu-Desrochers/Learning-Rust / functions

Functions33 in github.com/Mathieu-Desrochers/Learning-Rust

↓ 4 callersFunctionerrors_success
()
src/main.rs:241
↓ 1 callersFunctionassociated_functions
()
src/main.rs:312
↓ 1 callersFunctionclosures
()
src/main.rs:454
↓ 1 callersMethodeat_it
(&self)
src/main.rs:413
↓ 1 callersFunctionenums
()
src/main.rs:324
↓ 1 callersFunctionerrors
()
src/main.rs:249
↓ 1 callersFunctionhave_lunch
generics can be bound to traits
src/main.rs:438
↓ 1 callersFunctionhave_quick_snack
(_eatable: &Eatable)
src/main.rs:422
↓ 1 callersFunctionlifetimes
()
src/main.rs:134
↓ 1 callersFunctionlifetimes_basics
()
src/main.rs:105
↓ 1 callersFunctionlifetimes_bound
this declaration limits the lifetime of the function's result to the lifetime of its first parameter
src/main.rs:130
↓ 1 callersFunctionlifetimes_structs
()
src/main.rs:150
↓ 1 callersFunctionmutability
()
src/main.rs:165
↓ 1 callersFunctionownership
()
src/main.rs:7
↓ 1 callersFunctionownership_move
(_x: Vec<i32>)
src/main.rs:5
↓ 1 callersFunctionpropagation
this often is reduced to one character using the ? operator
src/main.rs:259
↓ 1 callersFunctionreferences
()
src/main.rs:58
↓ 1 callersFunctionreferences_mutable
(_x: &mut HashMap<String, String>)
src/main.rs:56
↓ 1 callersFunctionreferences_shared
(x: &HashMap<String, String>)
src/main.rs:50
↓ 1 callersFunctionstructs
()
src/main.rs:275
↓ 1 callersFunctiontraits
()
src/main.rs:401
Method_bark
(&self)
src/main.rs:318
Function_eat_debugable
bounds can be a combinaison of traits
src/main.rs:446
Function_eat_hashable
(_eatables: Vec<E>)
src/main.rs:447
Function_errors_failure
()
src/main.rs:245
Function_lifetimes_explicit
lifetimes can be declared on functions here is what is implied when nothing is spelled out
src/main.rs:117
Function_lifetimes_explicit_simple_case
when a function returns a reference and takes only one reference parameter rust assumes they have the same lifetimes
src/main.rs:124
Function_medium
populate fields from local variables having the same name
src/main.rs:290
Methodchump_it
provide default implementation
src/main.rs:406
Functiondocumentation
Actually run by cargo test for library crates. assert_eq!(documentation(), "You bet");
src/main.rs:511
Functionintegration_test
()
tests/integration_tests.rs:2
Functionmain
()
src/main.rs:515
Functionunit_test
()
src/main.rs:504