MCPcopy Create free account

hub / github.com/PacktPublishing/Rust-Standard-Library-Cookbook / functions

Functions272 in github.com/PacktPublishing/Rust-Standard-Library-Cookbook

↓ 1 callersFunctionmap_error_example
()
Chapter08/src/bin/errors.rs:16
↓ 1 callersFunctionmapping_sinks
()
Chapter08/src/bin/sinks.rs:52
↓ 1 callersFunctionmemoized_fibonacci_recursive
(n: u32)
Chapter10/src/bin/benchmarking.rs:32
↓ 1 callersFunctionor_else
()
Chapter08/src/bin/errors.rs:73
↓ 1 callersFunctionor_else_example
()
Chapter08/src/bin/errors.rs:24
↓ 1 callersFunctionparallel_sum
We are going to write a function that sums the numbers in a slice in parallel
Chapter01/src/bin/parallelism.rs:18
↓ 1 callersFunctionpath_on_disk
(path_to_file: &str)
Chapter09/src/bin/file_server.rs:143
↓ 1 callersMethodpatty_count
Now we have to define a method for every configurable value
Chapter01/src/bin/builder.rs:86
↓ 1 callersMethodperimeter
(&self)
Chapter07/src/bin/join.rs:13
↓ 1 callersMethodpoll_flush
(&mut self, cx: &mut Context)
Chapter08/src/bin/sinks.rs:105
↓ 1 callersFunctionprint_elements
(slice: &[T])
Chapter05/src/bin/conversion.rs:76
↓ 1 callersMethodpull_score
simulate ourselves retreiving a score from a remote database
Chapter08/src/bin/pool.rs:39
↓ 1 callersFunctionquick_streams
()
Chapter08/src/bin/streams.rs:37
↓ 1 callersFunctionread_age
Read an age out of a file
Chapter06/src/bin/custom_error.rs:77
↓ 1 callersFunctionread_file_as_number
Same goes for errors
Chapter05/src/bin/boxing.rs:96
↓ 1 callersFunctionread_file_iterator
(path: &str)
Chapter03/src/bin/text_files.rs:48
↓ 1 callersFunctionread_json
(mut reader: R)
Chapter04/src/bin/json.rs:88
↓ 1 callersFunctionread_line_buffer
()
Chapter01/src/bin/stdin.rs:39
↓ 1 callersFunctionread_line_iter
()
Chapter01/src/bin/stdin.rs:28
↓ 1 callersFunctionread_number
()
Chapter01/src/bin/stdin.rs:48
↓ 1 callersFunctionread_protocol
(path: &str)
Chapter03/src/bin/binary_files.rs:42
↓ 1 callersFunctionread_records
(reader: R)
Chapter04/src/bin/csv.rs:47
↓ 1 callersFunctionread_records
(reader: R)
Chapter04/src/bin/serde_csv.rs:94
↓ 1 callersFunctionread_toml
(mut reader: R)
Chapter04/src/bin/toml.rs:85
↓ 1 callersMethodremove_connection
(&self, id: usize)
Chapter07/src/bin/connection_handler.rs:50
↓ 1 callersFunctionrun_echo_server
(addr: &SocketAddr)
Chapter09/src/bin/echo_server_with_routing.rs:13
↓ 1 callersFunctionrun_file_server
(addr: &SocketAddr)
Chapter09/src/bin/file_server.rs:20
↓ 1 callersFunctionrun_with_service_function
(addr: &SocketAddr)
Chapter09/src/bin/hello_world_server.rs:17
↓ 1 callersMethodsalad
(mut self, val: bool)
Chapter01/src/bin/builder.rs:103
↓ 1 callersFunctionsanitize_path
(path: &str)
Chapter09/src/bin/file_server.rs:130
↓ 1 callersFunctionselect_all_example
()
Chapter08/src/bin/combinators.rs:55
↓ 1 callersFunctionsend_404
()
Chapter09/src/bin/file_server.rs:115
↓ 1 callersFunctionsend_example
()
Chapter08/src/bin/oneshot.rs:11
↓ 1 callersMethodsend_mail
(&self, msg: &Email)
Chapter05/src/bin/interior_mutability.rs:62
↓ 1 callersMethodset_status
(&mut self, status: PlayerStatus)
Chapter08/src/bin/returning.rs:38
↓ 1 callersFunctionshared
()
Chapter08/src/bin/combinators.rs:32
↓ 1 callersFunctionslow_fibonacci_recursive
(n: u32)
Chapter10/src/bin/benchmarking.rs:6
↓ 1 callersFunctionspawn_kid_with_new_ball
()
Chapter05/src/bin/shared.rs:47
↓ 1 callersFunctionsplit
()
Chapter08/src/bin/bilocks.rs:24
↓ 1 callersFunctionstream_panics
()
Chapter08/src/bin/errors.rs:89
↓ 1 callersFunctionsum_vecs
For parameters with a lifetime
Chapter08/src/bin/combinators.rs:24
↓ 1 callersFunctionthread_pool
()
Chapter08/src/bin/pool.rs:142
↓ 1 callersMethodupdate
(&self, id: u32, post: &UpdatedPost)
Chapter09/src/bin/making_requests.rs:74
↓ 1 callersFunctionusing_recover
()
Chapter08/src/bin/errors.rs:48
↓ 1 callersFunctionvector_sinks
()
Chapter08/src/bin/sinks.rs:12
↓ 1 callersFunctionwrite_dummy_protocol
Write a simple custom protocol
Chapter03/src/bin/binary_files.rs:20
↓ 1 callersFunctionwrite_json
(mut writer: W)
Chapter04/src/bin/json.rs:52
↓ 1 callersFunctionwrite_records
(writer: W)
Chapter04/src/bin/csv.rs:26
↓ 1 callersFunctionwrite_records
(writer: W)
Chapter04/src/bin/serde_csv.rs:35
↓ 1 callersFunctionwrite_toml
(mut writer: W)
Chapter04/src/bin/toml.rs:53
Functionbench_fast_fibonacci_recursive
(b: &mut Bencher)
Chapter10/src/bin/benchmarking.rs:90
Functionbench_fibonacci_imperative
(b: &mut Bencher)
Chapter10/src/bin/benchmarking.rs:74
Functionbench_memoized_fibonacci_recursive
(b: &mut Bencher)
Chapter10/src/bin/benchmarking.rs:82
Functionbench_slow_fibonacci_recursive
(b: &mut Bencher)
Chapter10/src/bin/benchmarking.rs:64
Methodcall
(&self, _: Request)
Chapter09/src/bin/hello_world_server.rs:54
Methodcause
(&self)
Chapter06/src/bin/custom_logger.rs:89
Methodcause
(&self)
Chapter06/src/bin/custom_error.rs:27
Functioncompose_two
compose_two is a helper function used to compose only two closures into one
Chapter10/src/bin/compose_functions.rs:14
Methoddefault
()
Chapter01/src/bin/default.rs:56
Methodderef
(&self)
Chapter07/src/bin/atomic.rs:145
Methodderef
(&self)
Chapter06/src/bin/raii.rs:67
Methodderef
(&self)
Chapter02/src/bin/own_iterator.rs:66
Methodderef_mut
(&mut self)
Chapter07/src/bin/atomic.rs:151
Methoddescription
(&self)
Chapter06/src/bin/custom_logger.rs:82
Methoddescription
(&self)
Chapter06/src/bin/custom_error.rs:17
Methoddrop
(&mut self)
Chapter07/src/bin/atomic.rs:137
Methoddrop
(&mut self)
Chapter06/src/bin/raii.rs:55
Methoddrop
This will automatically be called when a variable is dropped It cannot be called manually
Chapter06/src/bin/drop.rs:25
Methodfmt
(&self, f: &mut fmt::Formatter)
Chapter06/src/bin/custom_logger.rs:98
Methodfmt
(&self, f: &mut fmt::Formatter)
Chapter06/src/bin/custom_error.rs:38
Methodfmt
(&self, f: &mut fmt::Formatter)
Chapter09/src/bin/making_requests.rs:44
Methodfrom
(err: io::Error)
Chapter06/src/bin/custom_logger.rs:107
Methodfrom
(err: io::Error)
Chapter06/src/bin/custom_error.rs:50
Methodfrom
(mut vec: Vec<T>)
Chapter05/src/bin/conversion.rs:15
Methodinit
A convenience method to set everything up nicely
Chapter06/src/bin/custom_logger.rs:58
Functionis_dir
(entry: &DirEntry)
Chapter03/src/bin/traverse_files.rs:63
Methodis_leaf
(&self)
Chapter05/src/bin/boxing.rs:23
Methodlog
(&self, record: &Record)
Chapter06/src/bin/custom_logger.rs:24
Functionmain
()
Chapter04/src/bin/json.rs:33
Functionmain
()
Chapter04/src/bin/csv.rs:8
Functionmain
()
Chapter04/src/bin/dynamic_json.rs:7
Functionmain
()
Chapter04/src/bin/toml.rs:34
Functionmain
()
Chapter04/src/bin/serde_csv.rs:17
Functionmain
()
Chapter07/src/bin/connection_handler.rs:59
Functionmain
()
Chapter07/src/bin/atomic.rs:7
Functionmain
()
Chapter07/src/bin/channels.rs:8
Functionmain
()
Chapter07/src/bin/rw_lock.rs:4
Functionmain
()
Chapter07/src/bin/join.rs:18
Functionmain
()
Chapter07/src/bin/sharing_in_closures.rs:4
Functionmain
()
Chapter07/src/bin/par_iter.rs:4
Functionmain
()
Chapter06/src/bin/logging.rs:6
Functionmain
()
Chapter06/src/bin/custom_logger.rs:118
Functionmain
()
Chapter06/src/bin/raii.rs:72
Functionmain
()
Chapter06/src/bin/drop.rs:30
Functionmain
()
Chapter06/src/bin/custom_error.rs:61
Functionmain
()
Chapter03/src/bin/glob.rs:4
Functionmain
()
Chapter03/src/bin/traverse_files.rs:4
Functionmain
()
Chapter03/src/bin/binary_files.rs:8
Functionmain
()
Chapter03/src/bin/text_files.rs:5
Functionmain
()
Chapter03/src/bin/compression.rs:13
← previousnext →101–200 of 272, ranked by callers