MCPcopy Create free account

hub / github.com/PacktPublishing/Practical-System-Programming-for-Rust-Developers / functions

Functions191 in github.com/PacktPublishing/Practical-System-Programming-for-Rust-Developers

↓ 12 callersMethodpath
(&self)
Chapter11/tcpproxy/src/bin/origin.rs:23
↓ 9 callersMethodgenerate_ast
(&mut self, oper_prec: OperPrec)
Chapter02/src/parsemath/parser.rs:60
↓ 9 callersMethodget_next_token
Retrieve the next token from arithmetic expression and set it to current_token field in Parser struct
Chapter02/src/parsemath/parser.rs:49
↓ 8 callersMethodnext
(&mut self)
Chapter02/src/parsemath/tokenizer.rs:32
↓ 7 callersFunctioncheck_symbol_string
this checks if a symbol string is contained within another string
Chapter05/src/lib.rs:27
↓ 5 callersFunctioncheck_symbol_string
this checks if a symbol string is contained within another string
Chapter03/src/lib.rs:29
↓ 5 callersMethodshow_document
(&mut self)
Chapter07/tui/src/bin/text-viewer2.rs:43
↓ 4 callersMethodparse
(&mut self)
Chapter02/src/parsemath/parser.rs:36
↓ 3 callersFunctioneval
Given an AST, calculate the numeric value.
Chapter02/src/parsemath/ast.rs:21
↓ 3 callersFunctionprocess_resize_request
( size: SizeOption, mode: Mode, src_folder: &mut PathBuf, )
Chapter04/src/imagix/resize.rs:65
↓ 2 callersFunctioncheck_matching_pair
This checks for matching symbol strings in a given input
Chapter03/src/lib.rs:34
↓ 2 callersFunctioncheck_matching_pair
This checks for matching symbol strings in a given input
Chapter05/src/lib.rs:33
↓ 2 callersMethoddec_x
(&mut self)
Chapter07/tui/src/bin/text-viewer2.rs:100
↓ 2 callersFunctionget_image_files
The program supports only files of type jpg/JPG and png/PNG.
Chapter04/src/imagix/resize.rs:136
↓ 2 callersFunctionget_index_for_symbol
this returns index of given char symbol, if symbol is present.
Chapter03/src/lib.rs:39
↓ 2 callersFunctionget_index_for_symbol
this returns index of given char symbol, if symbol is present.
Chapter05/src/lib.rs:39
↓ 2 callersMethodget_order_number
(&self)
Chapter11/tcpproxy/src/bin/origin.rs:30
↓ 2 callersFunctionget_stats
(src_folder: PathBuf)
Chapter04/src/imagix/stats.rs:5
↓ 2 callersFunctionresize_image
(size: u32, src_folder: &mut PathBuf)
Chapter04/src/imagix/resize.rs:98
↓ 2 callersMethodset_pos
(&mut self, x: usize, y: usize)
Chapter07/tui/src/bin/text-viewer2.rs:83
↓ 1 callersFunctionchange_thread_count
(count: u32)
Chapter12/miscellaneous/snippet4.rs:3
↓ 1 callersMethodcheck_paren
(&mut self, expected: Token)
Chapter02/src/parsemath/parser.rs:104
↓ 1 callersMethodconvert_token_to_node
(&mut self, left_expr: Node)
Chapter02/src/parsemath/parser.rs:118
↓ 1 callersFunctioncopy_file
()
Chapter09/miscellaneous/snippet4.rs:3
↓ 1 callersFunctioncopy_file
(file_struct: Filenames)
Chapter09/miscellaneous/snippet5.rs:16
↓ 1 callersMethoddec_y
(&mut self)
Chapter07/tui/src/bin/text-viewer2.rs:119
↓ 1 callersFunctionevaluate
Function to invoke Parser and evaluate expression
Chapter02/src/main.rs:11
↓ 1 callersFunctiongenerate_html_template_var
Function to generate HTML for line containing template variable
Chapter03/src/lib.rs:101
↓ 1 callersFunctiongenerate_html_template_var
Function to generate HTML for line containing template variable Supports multiple template vars in one line and no limit on number of string literals
Chapter05/src/lib.rs:95
↓ 1 callersFunctionget_content_type
(input_line: &str)
Chapter03/src/lib.rs:57
↓ 1 callersFunctionget_content_type
(input_line: &str)
Chapter05/src/lib.rs:57
↓ 1 callersFunctionget_device_information
Function to print device information
Chapter10/usb/src/main.rs:87
↓ 1 callersFunctionget_expression_data
Helper function to parse template variable
Chapter03/src/lib.rs:123
↓ 1 callersFunctionget_expression_data
Helper function to parse template variable
Chapter05/src/lib.rs:111
↓ 1 callersMethodget_oper_prec
(&self)
Chapter02/src/parsemath/token.rs:33
↓ 1 callersFunctionget_src_stats_for_file
(file_name: &Path)
Chapter06/rstat/src/srcstats.rs:51
↓ 1 callersFunctionget_summary_src_stats
(in_dir: &Path)
Chapter06/rstat/src/srcstats.rs:16
↓ 1 callersFunctionhandle_connection
(proxy_stream: &mut TcpStream, origin_stream: &mut TcpStream)
Chapter11/tcpproxy/src/bin/proxy.rs:51
↓ 1 callersFunctionhello_from_lib
(message: & str)
Chapter01/my-first-lib/src/lib.rs:1
↓ 1 callersMethodinc_x
(&mut self)
Chapter07/tui/src/bin/text-viewer2.rs:91
↓ 1 callersMethodinc_y
(&mut self)
Chapter07/tui/src/bin/text-viewer2.rs:109
↓ 1 callersMethodmethod
(&self)
Chapter11/tcpproxy/src/bin/origin.rs:16
↓ 1 callersMethodparse_number
(&mut self)
Chapter02/src/parsemath/parser.rs:75
↓ 1 callersFunctionread_files
(handle: &mut impl Read)
Chapter10/miscellaneous/snippet12.rs:3
↓ 1 callersFunctionresize_all
(size: u32, src_folder: &mut PathBuf)
Chapter04/src/imagix/resize.rs:89
↓ 1 callersFunctionresize_single
(size: u32, src_folder: &mut PathBuf)
Chapter04/src/imagix/resize.rs:82
↓ 1 callersMethodrun
(&mut self)
Chapter07/tui/src/bin/text-viewer2.rs:129
↓ 1 callersMethodrun
(&mut self)
Chapter07/tui/src/bin/text-viewer1.rs:89
↓ 1 callersFunctionsee_ffi_in_action
()
Chapter12/ffi/src/lib.rs:2
↓ 1 callersMethodset_pos
(&mut self, x: usize, y: usize)
Chapter07/tui/src/bin/text-viewer1.rs:80
↓ 1 callersMethodshow_document
(&mut self)
Chapter07/tui/src/bin/text-viewer1.rs:52
↓ 1 callersFunctionwrite_to_file
Function to write details to output file
Chapter10/usb/src/main.rs:80
Functioncheck_for_tag_test
()
Chapter03/src/lib.rs:158
Functioncheck_for_tag_test
()
Chapter05/src/lib.rs:148
Functioncheck_get_expression_data_test
()
Chapter03/src/lib.rs:178
Functioncheck_get_expression_data_test
()
Chapter05/src/lib.rs:168
Functioncheck_get_index_for_symbol_test
()
Chapter03/src/lib.rs:142
Functioncheck_get_index_for_symbol_test
()
Chapter05/src/lib.rs:131
Functioncheck_if_tag_test
()
Chapter03/src/lib.rs:165
Functioncheck_if_tag_test
()
Chapter05/src/lib.rs:155
Functioncheck_literal_test
()
Chapter03/src/lib.rs:172
Functioncheck_literal_test
()
Chapter05/src/lib.rs:162
Functioncheck_symbol_pair_test
()
Chapter03/src/lib.rs:192
Functioncheck_symbol_pair_test
()
Chapter05/src/lib.rs:186
Functioncheck_symbol_string_test
()
Chapter03/src/lib.rs:188
Functioncheck_symbol_string_test
()
Chapter05/src/lib.rs:182
Functioncheck_template_var_test
()
Chapter03/src/lib.rs:146
Functioncheck_template_var_test
()
Chapter05/src/lib.rs:135
Methoddrop
(&mut self)
Chapter09/miscellaneous/snippet5.rs:8
Functionfiles_test1
()
Chapter01/integ-test-example/tests/integration_test1.rs:3
Functionfiles_test2
()
Chapter01/integ-test-example/tests/integration_test1.rs:13
Methodfmt
(&self, out: &mut fmt::Formatter)
Chapter04/src/imagix/error.rs:32
Methodfmt
(&self, out: &mut fmt::Formatter)
Chapter04/src/imagix/resize.rs:24
Methodfmt
(&self, f: &mut fmt::Formatter)
Chapter06/rstat/src/errors.rs:8
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
Chapter10/usb/src/main.rs:29
Methodfmt
(&self, f: &mut fmt::Formatter)
Chapter02/src/parsemath/parser.rs:166
Methodfrom
(_error: io::Error)
Chapter04/src/imagix/error.rs:14
Methodfrom
(start: &Instant)
Chapter04/src/imagix/resize.rs:13
Methodfrom
(s: &str)
Chapter06/rstat/src/errors.rs:13
Methodfrom
(_e: libusb::Error)
Chapter10/usb/src/main.rs:46
Methodfrom
(_evalerr: std::boxed::Box<dyn std::error::Error>)
Chapter02/src/parsemath/parser.rs:186
Methodfrom_str
(s: &str)
Chapter04/src/imagix/resize.rs:36
Methodfrom_str
(msg: &str)
Chapter11/tcpproxy/src/bin/origin.rs:39
Functionget_process_id
This function gets the process id of the current executable. It returns a non-zero number ``` fn get_id() { let x = integ_test_example::get_process_id
Chapter01/integ-test-example/src/lib.rs:15
Functionget_process_id
()
Chapter01/test-example/src/main.rs:7
Methodinit
(file_name: &str)
Chapter07/tui/src/bin/text-viewer2.rs:16
Methodinit
(file_name: &str)
Chapter07/tui/src/bin/text-viewer1.rs:25
Functionit_works
()
Chapter01/my-first-lib/src/lib.rs:9
Functionmain
()
Chapter04/miscellaneous/snippet4.rs:3
Functionmain
()
Chapter04/miscellaneous/snippet6.rs:2
Functionmain
()
Chapter04/miscellaneous/snippet5.rs:2
Functionmain
()
Chapter04/miscellaneous/snippet2.rs:2
Functionmain
()
Chapter04/miscellaneous/snippet3.rs:3
Functionmain
()
Chapter04/miscellaneous/snippet1.rs:2
Functionmain
()
Chapter04/src/imagecli.rs:33
Functionmain
()
Chapter07/tui/src/bin/mouse-events.rs:7
Functionmain
()
Chapter07/tui/src/bin/text-viewer2.rs:170
Functionmain
()
Chapter07/tui/src/bin/text-viewer1.rs:104
Functionmain
()
Chapter06/rstat/src/main.rs:18
Functionmain
()
Chapter06/miscellaneous/snippet4.rs:2
next →1–100 of 191, ranked by callers