Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-Standard-Library-Cookbook
/ functions
Functions
272 in github.com/PacktPublishing/Rust-Standard-Library-Cookbook
⨍
Functions
272
◇
Types & classes
61
↓ 1 callers
Function
map_error_example
()
Chapter08/src/bin/errors.rs:16
↓ 1 callers
Function
mapping_sinks
()
Chapter08/src/bin/sinks.rs:52
↓ 1 callers
Function
memoized_fibonacci_recursive
(n: u32)
Chapter10/src/bin/benchmarking.rs:32
↓ 1 callers
Function
or_else
()
Chapter08/src/bin/errors.rs:73
↓ 1 callers
Function
or_else_example
()
Chapter08/src/bin/errors.rs:24
↓ 1 callers
Function
parallel_sum
We are going to write a function that sums the numbers in a slice in parallel
Chapter01/src/bin/parallelism.rs:18
↓ 1 callers
Function
path_on_disk
(path_to_file: &str)
Chapter09/src/bin/file_server.rs:143
↓ 1 callers
Method
patty_count
Now we have to define a method for every configurable value
Chapter01/src/bin/builder.rs:86
↓ 1 callers
Method
perimeter
(&self)
Chapter07/src/bin/join.rs:13
↓ 1 callers
Method
poll_flush
(&mut self, cx: &mut Context)
Chapter08/src/bin/sinks.rs:105
↓ 1 callers
Function
print_elements
(slice: &[T])
Chapter05/src/bin/conversion.rs:76
↓ 1 callers
Method
pull_score
simulate ourselves retreiving a score from a remote database
Chapter08/src/bin/pool.rs:39
↓ 1 callers
Function
quick_streams
()
Chapter08/src/bin/streams.rs:37
↓ 1 callers
Function
read_age
Read an age out of a file
Chapter06/src/bin/custom_error.rs:77
↓ 1 callers
Function
read_file_as_number
Same goes for errors
Chapter05/src/bin/boxing.rs:96
↓ 1 callers
Function
read_file_iterator
(path: &str)
Chapter03/src/bin/text_files.rs:48
↓ 1 callers
Function
read_json
(mut reader: R)
Chapter04/src/bin/json.rs:88
↓ 1 callers
Function
read_line_buffer
()
Chapter01/src/bin/stdin.rs:39
↓ 1 callers
Function
read_line_iter
()
Chapter01/src/bin/stdin.rs:28
↓ 1 callers
Function
read_number
()
Chapter01/src/bin/stdin.rs:48
↓ 1 callers
Function
read_protocol
(path: &str)
Chapter03/src/bin/binary_files.rs:42
↓ 1 callers
Function
read_records
(reader: R)
Chapter04/src/bin/csv.rs:47
↓ 1 callers
Function
read_records
(reader: R)
Chapter04/src/bin/serde_csv.rs:94
↓ 1 callers
Function
read_toml
(mut reader: R)
Chapter04/src/bin/toml.rs:85
↓ 1 callers
Method
remove_connection
(&self, id: usize)
Chapter07/src/bin/connection_handler.rs:50
↓ 1 callers
Function
run_echo_server
(addr: &SocketAddr)
Chapter09/src/bin/echo_server_with_routing.rs:13
↓ 1 callers
Function
run_file_server
(addr: &SocketAddr)
Chapter09/src/bin/file_server.rs:20
↓ 1 callers
Function
run_with_service_function
(addr: &SocketAddr)
Chapter09/src/bin/hello_world_server.rs:17
↓ 1 callers
Method
salad
(mut self, val: bool)
Chapter01/src/bin/builder.rs:103
↓ 1 callers
Function
sanitize_path
(path: &str)
Chapter09/src/bin/file_server.rs:130
↓ 1 callers
Function
select_all_example
()
Chapter08/src/bin/combinators.rs:55
↓ 1 callers
Function
send_404
()
Chapter09/src/bin/file_server.rs:115
↓ 1 callers
Function
send_example
()
Chapter08/src/bin/oneshot.rs:11
↓ 1 callers
Method
send_mail
(&self, msg: &Email)
Chapter05/src/bin/interior_mutability.rs:62
↓ 1 callers
Method
set_status
(&mut self, status: PlayerStatus)
Chapter08/src/bin/returning.rs:38
↓ 1 callers
Function
shared
()
Chapter08/src/bin/combinators.rs:32
↓ 1 callers
Function
slow_fibonacci_recursive
(n: u32)
Chapter10/src/bin/benchmarking.rs:6
↓ 1 callers
Function
spawn_kid_with_new_ball
()
Chapter05/src/bin/shared.rs:47
↓ 1 callers
Function
split
()
Chapter08/src/bin/bilocks.rs:24
↓ 1 callers
Function
stream_panics
()
Chapter08/src/bin/errors.rs:89
↓ 1 callers
Function
sum_vecs
For parameters with a lifetime
Chapter08/src/bin/combinators.rs:24
↓ 1 callers
Function
thread_pool
()
Chapter08/src/bin/pool.rs:142
↓ 1 callers
Method
update
(&self, id: u32, post: &UpdatedPost)
Chapter09/src/bin/making_requests.rs:74
↓ 1 callers
Function
using_recover
()
Chapter08/src/bin/errors.rs:48
↓ 1 callers
Function
vector_sinks
()
Chapter08/src/bin/sinks.rs:12
↓ 1 callers
Function
write_dummy_protocol
Write a simple custom protocol
Chapter03/src/bin/binary_files.rs:20
↓ 1 callers
Function
write_json
(mut writer: W)
Chapter04/src/bin/json.rs:52
↓ 1 callers
Function
write_records
(writer: W)
Chapter04/src/bin/csv.rs:26
↓ 1 callers
Function
write_records
(writer: W)
Chapter04/src/bin/serde_csv.rs:35
↓ 1 callers
Function
write_toml
(mut writer: W)
Chapter04/src/bin/toml.rs:53
Function
bench_fast_fibonacci_recursive
(b: &mut Bencher)
Chapter10/src/bin/benchmarking.rs:90
Function
bench_fibonacci_imperative
(b: &mut Bencher)
Chapter10/src/bin/benchmarking.rs:74
Function
bench_memoized_fibonacci_recursive
(b: &mut Bencher)
Chapter10/src/bin/benchmarking.rs:82
Function
bench_slow_fibonacci_recursive
(b: &mut Bencher)
Chapter10/src/bin/benchmarking.rs:64
Method
call
(&self, _: Request)
Chapter09/src/bin/hello_world_server.rs:54
Method
cause
(&self)
Chapter06/src/bin/custom_logger.rs:89
Method
cause
(&self)
Chapter06/src/bin/custom_error.rs:27
Function
compose_two
compose_two is a helper function used to compose only two closures into one
Chapter10/src/bin/compose_functions.rs:14
Method
default
()
Chapter01/src/bin/default.rs:56
Method
deref
(&self)
Chapter07/src/bin/atomic.rs:145
Method
deref
(&self)
Chapter06/src/bin/raii.rs:67
Method
deref
(&self)
Chapter02/src/bin/own_iterator.rs:66
Method
deref_mut
(&mut self)
Chapter07/src/bin/atomic.rs:151
Method
description
(&self)
Chapter06/src/bin/custom_logger.rs:82
Method
description
(&self)
Chapter06/src/bin/custom_error.rs:17
Method
drop
(&mut self)
Chapter07/src/bin/atomic.rs:137
Method
drop
(&mut self)
Chapter06/src/bin/raii.rs:55
Method
drop
This will automatically be called when a variable is dropped It cannot be called manually
Chapter06/src/bin/drop.rs:25
Method
fmt
(&self, f: &mut fmt::Formatter)
Chapter06/src/bin/custom_logger.rs:98
Method
fmt
(&self, f: &mut fmt::Formatter)
Chapter06/src/bin/custom_error.rs:38
Method
fmt
(&self, f: &mut fmt::Formatter)
Chapter09/src/bin/making_requests.rs:44
Method
from
(err: io::Error)
Chapter06/src/bin/custom_logger.rs:107
Method
from
(err: io::Error)
Chapter06/src/bin/custom_error.rs:50
Method
from
(mut vec: Vec<T>)
Chapter05/src/bin/conversion.rs:15
Method
init
A convenience method to set everything up nicely
Chapter06/src/bin/custom_logger.rs:58
Function
is_dir
(entry: &DirEntry)
Chapter03/src/bin/traverse_files.rs:63
Method
is_leaf
(&self)
Chapter05/src/bin/boxing.rs:23
Method
log
(&self, record: &Record)
Chapter06/src/bin/custom_logger.rs:24
Function
main
()
Chapter04/src/bin/json.rs:33
Function
main
()
Chapter04/src/bin/csv.rs:8
Function
main
()
Chapter04/src/bin/dynamic_json.rs:7
Function
main
()
Chapter04/src/bin/toml.rs:34
Function
main
()
Chapter04/src/bin/serde_csv.rs:17
Function
main
()
Chapter07/src/bin/connection_handler.rs:59
Function
main
()
Chapter07/src/bin/atomic.rs:7
Function
main
()
Chapter07/src/bin/channels.rs:8
Function
main
()
Chapter07/src/bin/rw_lock.rs:4
Function
main
()
Chapter07/src/bin/join.rs:18
Function
main
()
Chapter07/src/bin/sharing_in_closures.rs:4
Function
main
()
Chapter07/src/bin/par_iter.rs:4
Function
main
()
Chapter06/src/bin/logging.rs:6
Function
main
()
Chapter06/src/bin/custom_logger.rs:118
Function
main
()
Chapter06/src/bin/raii.rs:72
Function
main
()
Chapter06/src/bin/drop.rs:30
Function
main
()
Chapter06/src/bin/custom_error.rs:61
Function
main
()
Chapter03/src/bin/glob.rs:4
Function
main
()
Chapter03/src/bin/traverse_files.rs:4
Function
main
()
Chapter03/src/bin/binary_files.rs:8
Function
main
()
Chapter03/src/bin/text_files.rs:5
Function
main
()
Chapter03/src/bin/compression.rs:13
← previous
next →
101–200 of 272, ranked by callers