Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Mastering-Rust
/ functions
Functions
238 in github.com/PacktPublishing/Mastering-Rust
⨍
Functions
238
◇
Types & classes
70
↓ 64 callers
Function
new
()
Chapter12/arena-web/src/main.rs:69
↓ 14 callers
Method
into
(self)
Chapter04/into-impl.rs:14
↓ 5 callers
Method
add
(self, rhs: Money<T>)
Chapter04/std-trait-impls.rs:11
↓ 5 callers
Function
print_slice
(slice: &[T])
Chapter04/array-slicing.rs:5
↓ 4 callers
Method
append
(&self, data: T)
Chapter06/rc-1.rs:19
↓ 3 callers
Method
append
(&mut self, data: T)
Chapter06/rc-2.rs:21
↓ 3 callers
Method
append
(&mut self, data: T)
Chapter06/rc-3.rs:22
↓ 3 callers
Function
establish_connection
()
Chapter13/diesel-test/src/lib.rs:18
↓ 2 callers
Function
bytestring_to_string
(str: Vec<u8>)
Chapter05/mapping.rs:10
↓ 2 callers
Function
bytestring_to_string_with_match
(str: Vec<u8>)
Chapter05/try.rs:3
↓ 2 callers
Function
bytestring_to_string_with_match
(str: Vec<u8>)
Chapter05/mapping.rs:3
↓ 2 callers
Function
bytestring_to_string_with_qmark
(str: Vec<u8>)
Chapter05/try.rs:19
↓ 2 callers
Function
count_string
Chapter10/count-string.c:1
↓ 2 callers
Function
f2
()
Chapter05/panic.rs:9
↓ 2 callers
Method
new
()
Chapter10/ncurses-2.rs:20
↓ 2 callers
Function
say_hello
(to_whom: &str)
Chapter04/passing-string-slices.rs:1
↓ 2 callers
Method
square_root
(e=0.00000001)
Chapter10/ruru_test/sqr-with-ruby.rb:2
↓ 1 callers
Function
add_data_to_person
(uuid: Uuid, person_data: &serde_json::Value)
Chapter13/diesel-test/src/main.rs:19
↓ 1 callers
Function
add_one
(a: u8)
Chapter06/add-2.rs:1
↓ 1 callers
Method
color_red
(&self)
Chapter10/ncurses-2.rs:42
↓ 1 callers
Function
create_person
(conn: &PgConnection, name: &'a str)
Chapter13/diesel-test/src/lib.rs:27
↓ 1 callers
Function
create_table
(conn: DbConnection)
Chapter13/postgres-r2d2-test/src/main.rs:23
↓ 1 callers
Method
deinit_screen
(&self)
Chapter10/ncurses-2.rs:39
↓ 1 callers
Method
display
(&self)
Chapter01/wordcounter.rs:21
↓ 1 callers
Function
do_nothing
()
Chapter09/lint/src/main.rs:8
↓ 1 callers
Function
do_nothing_fast
()
Chapter03/bench-test/src/lib.rs:12
↓ 1 callers
Function
do_nothing_slowly
()
Chapter03/bench-test/src/lib.rs:7
↓ 1 callers
Method
exclaim
(self)
Chapter06/meep.py:4
↓ 1 callers
Function
expand_countable_fields
(ast: &syn::MacroInput)
Chapter09/countable/src/count_fields_plugin.rs:19
↓ 1 callers
Function
f1
Chapter06/stack-abuse.c:3
↓ 1 callers
Function
f1
()
Chapter06/stack-2.rs:1
↓ 1 callers
Function
f1
()
Chapter05/panic.rs:3
↓ 1 callers
Function
f2
(y: u8)
Chapter06/stack-1.rs:1
↓ 1 callers
Function
f3
()
Chapter05/panic.rs:13
↓ 1 callers
Function
find_all_with_name
(needle: &str)
Chapter13/diesel-test/src/main.rs:28
↓ 1 callers
Function
find_largest_offset
(update: &TGUpdate)
Chapter12/telegram-github-bot/src/main.rs:73
↓ 1 callers
Function
function_without_vars
()
Chapter07/closures-1.rs:5
↓ 1 callers
Function
get_a_borrowed_value
()
Chapter06/borrows-1.rs:1
↓ 1 callers
Method
get_char
(&self)
Chapter10/ncurses-2.rs:31
↓ 1 callers
Function
get_github_image_url
(client: &Client, text: &str)
Chapter12/telegram-github-bot/src/main.rs:43
↓ 1 callers
Function
get_updates
(client: &Client, token: &str, next_offset: u64)
Chapter12/telegram-github-bot/src/main.rs:83
↓ 1 callers
Method
increment
(&mut self, word: &str)
Chapter01/wordcounter.rs:15
↓ 1 callers
Method
init_screen
(&self)
Chapter10/ncurses-2.rs:25
↓ 1 callers
Function
insert_person
(conn: DbConnection)
Chapter13/postgres-r2d2-test/src/main.rs:32
↓ 1 callers
Method
move_and_get_char
(&self, y: usize, x: usize)
Chapter10/ncurses-2.rs:34
↓ 1 callers
Function
multiply_and_store
(nums: Arc<Mutex<Vec<N>>>, num: N, multiplier: N)
Chapter14/broken-program-2/src/main.rs:6
↓ 1 callers
Function
multiply_numbers_by
(nums: Vec<N>, multiplier: N, ret: Arc<Mutex<Vec<N>>>)
Chapter14/broken-program-2/src/main.rs:11
↓ 1 callers
Function
new_person
(new_name: &str)
Chapter13/diesel-test/src/main.rs:12
↓ 1 callers
Function
probablyMakeMeep
()
Chapter06/meep.py:7
↓ 1 callers
Method
refresh
(&self)
Chapter10/ncurses-2.rs:28
↓ 1 callers
Function
register
(reg: &mut Registry)
Chapter09/compiler-plugin-stable/hello_plugin/src/lib.rs:15
↓ 1 callers
Function
reply_with_image
(client: &Client, token: &str, id: u64, image_url: &str)
Chapter12/telegram-github-bot/src/main.rs:59
↓ 1 callers
Function
return_the_answer
()
Chapter09/lint/src/main.rs:4
↓ 1 callers
Function
safe_count_string
(str: &str)
Chapter10/count-string.rs:8
↓ 1 callers
Method
set_the_number
(&mut self, new_number: &'a u8)
Chapter06/lifetime-structs.rs:9
↓ 1 callers
Function
silly_loop
()
Chapter03/ignore-test.rs:1
↓ 1 callers
Function
squareRoot
(s, e=0.00000001)
Chapter10/test-project/sqr.js:1
↓ 1 callers
Function
sum_inputs_and_outputs
()
Chapter03/mod-test.rs:6
↓ 1 callers
Function
sum_inputs_and_outputs
()
Chapter03/sum/src/lib.rs:6
↓ 1 callers
Function
take_the_foo
(f: &Foo)
Chapter06/functions-with-borrows-2.rs:9
↓ 1 callers
Function
take_the_n
(n: &mut u8)
Chapter06/functions-with-borrows-2.rs:1
↓ 1 callers
Function
take_the_n
(n: u8)
Chapter06/functions.rs:1
↓ 1 callers
Function
take_the_n
(n: &u8)
Chapter06/functions-with-borrows-1.rs:1
↓ 1 callers
Function
take_the_s
(s: &String)
Chapter06/functions-with-borrows-2.rs:6
↓ 1 callers
Function
take_the_s
(s: String)
Chapter06/functions.rs:5
↓ 1 callers
Function
take_the_s
(s: &String)
Chapter06/functions-with-borrows-1.rs:5
Function
attack
(cookies: &Cookies, state: GameState, id: &str)
Chapter12/arena-web/src/main.rs:109
Function
bench_nothing_fast
(b: &mut Bencher)
Chapter03/bench-test/src/lib.rs:21
Function
bench_nothing_slowly
(b: &mut Bencher)
Chapter03/bench-test/src/lib.rs:16
Function
bytestring_to_string_with_try
(str: Vec<u8>)
Chapter05/try.rs:13
Method
cause
(&self)
Chapter05/custom-error-2.rs:59
Method
check_fn
(&mut self, cx: &EarlyContext, _: FnKind, fndecl: &FnDecl, span: Span, _: NodeId)
Chapter09/lint/src/lint_fn.rs:29
Function
countable_fields
(input: TokenStream)
Chapter09/countable/src/count_fields_plugin.rs:10
Function
derive_foobar
(input: TokenStream)
Chapter09/macro11crate.rs:8
Method
description
(&self)
Chapter05/custom-error-2.rs:23
Method
deserialize
(deserializer: D)
Chapter11/serde-custom/src/main.rs:66
Method
drop
(&mut self)
Chapter06/drops.rs:6
Method
drop
(&mut self)
Chapter10/ncurses-2.rs:48
Method
expecting
(&self, formatter: &mut fmt::Formatter)
Chapter11/serde-custom/src/main.rs:43
Function
f1
(x: u8)
Chapter06/stack-1.rs:6
Method
fmt
(&self, f: &mut Formatter)
Chapter04/display-trait.rs:9
Method
fmt
(&self, f: &mut fmt::Formatter)
Chapter05/custom-error-2.rs:17
Method
from_request
(_: &'a Request<'r>)
Chapter12/arena-web/src/main.rs:50
Function
game
(state: GameState, flash: Option<FlashMessage>)
Chapter12/arena-web/src/main.rs:96
Method
generate_empty
(size_x: usize, size_y: usize)
Chapter03/buist/src/main.rs:52
Method
get_lints
(&self)
Chapter09/lint/src/lint_fn.rs:23
Method
get_strength
(&self)
Chapter01/structmethods.rs:24
Method
get_the_number
(&self)
Chapter06/lifetime-structs.rs:6
Function
hello
(_: &mut ExtCtxt, sp: Span, _: &[TokenTree])
Chapter09/simplest-compiler-plugin.rs:11
Function
hello
(_: &mut ExtCtxt, sp: Span, _: &[TokenTree])
Chapter09/compiler-plugin/src/simplest_compiler_plugin.rs:11
Function
hello
(_: &'cx mut ExtCtxt, sp: Span, _: &[TokenTree])
Chapter09/compiler-plugin-stable/hello_plugin/src/lib.rs:9
Function
index
(cookies: &Cookies)
Chapter12/arena-web/src/main.rs:61
Function
initialize_sum_floats
()
Chapter10/ruru_test/src/lib.rs:33
Function
main
()
Chapter04/passing-string-slices.rs:5
Function
main
()
Chapter04/array-slicing.rs:9
Function
main
()
Chapter04/std-trait-impls.rs:17
Function
main
()
Chapter04/generic-struct.rs:7
Function
main
()
Chapter04/trait-object.rs:16
Function
main
()
Chapter04/fixed-array-example.rs:1
Function
main
()
Chapter04/display-trait.rs:14
next →
1–100 of 238, ranked by callers