Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kobzol/rust-course-fei
/ functions
Functions
835 in github.com/Kobzol/rust-course-fei
⨍
Functions
835
◇
Types & classes
158
↓ 236 callers
Function
new
()
lessons/01/exercises/tests/03_struct.rs:14
↓ 62 callers
Function
check
(mut parser: P, input: &str, expected_rest: &str, expected: T)
lessons/05/exercises/tests/02_parser_combinator.rs:556
↓ 47 callers
Function
pc_transition
(mut computer: ComputerState, event: Event)
lessons/02/exercises/tests/03_state_transition_struct.rs:64
↓ 46 callers
Method
send
(&mut self, message: T)
lessons/09/exercises/src/writer.rs:18
↓ 42 callers
Method
close
(self)
lessons/09/exercises/src/lib.rs:700
↓ 41 callers
Method
add
Add a new node to the graph. The `dependents` links of all the passed `dependencies` should be updated. If there is already a node with the given nod
lessons/05/exercises/tests/03_graph.rs:59
↓ 40 callers
Method
client
(&self)
lessons/10/exercises/src/lib.rs:835
↓ 39 callers
Method
client
(&self)
lessons/09/exercises/src/lib.rs:730
↓ 37 callers
Method
join
(&mut self, name: &str)
lessons/09/exercises/src/lib.rs:619
↓ 35 callers
Method
client
(&self)
lessons/08/exercises/src/lib.rs:695
↓ 35 callers
Function
json_parser
()
lessons/05/exercises/tests/02_parser_combinator.rs:487
↓ 31 callers
Function
check_fail
(mut parser: P, input: &str)
lessons/05/exercises/tests/02_parser_combinator.rs:567
↓ 29 callers
Method
join
(&mut self, name: &str)
lessons/10/exercises/src/lib.rs:744
↓ 29 callers
Method
join
(&mut self, name: &str)
lessons/08/exercises/src/lib.rs:585
↓ 26 callers
Function
from
()
lessons/06/exercises/assignments/tests/01_newtype_wrapper.rs:62
↓ 26 callers
Function
opts
(max_clients: usize)
lessons/10/exercises/src/lib.rs:852
↓ 26 callers
Function
run_test
TODO(bonus): The server should correctly close client sockets when it shuts down, to avoid a situation where the clients would be stuck waiting for a
lessons/10/exercises/src/lib.rs:702
↓ 25 callers
Function
opts
(max_clients: usize)
lessons/09/exercises/src/lib.rs:745
↓ 24 callers
Function
run_test
(opts: ServerOpts, func: F)
lessons/09/exercises/src/lib.rs:604
↓ 22 callers
Function
opts
(max_clients: usize)
lessons/08/exercises/src/lib.rs:714
↓ 22 callers
Function
run_test
TODO(bonus): uncomment the following test and make it pass The server should correctly close client socket when it shuts down, to avoid a situation wh
lessons/08/exercises/src/lib.rs:570
↓ 21 callers
Function
char_parser
This is the simplest parser combinator. It returns a parser that parses a specific character.
lessons/05/exercises/tests/02_parser_combinator.rs:87
↓ 19 callers
Function
sleep
(duration_ms: u64)
lessons/09/exercises/src/lib.rs:741
↓ 18 callers
Function
check_value
(input: &str, value: HandValue)
lessons/04/exercises/tests/09_poker_hand_value.rs:250
↓ 17 callers
Method
send
(&mut self, msg: ClientToServerMsg)
lessons/10/exercises/src/lib.rs:792
↓ 15 callers
Method
recv
(&mut self)
lessons/10/exercises/src/lib.rs:812
↓ 14 callers
Method
send
(&mut self, msg: ClientToServerMsg)
lessons/09/exercises/src/lib.rs:670
↓ 14 callers
Function
sleep
(duration_ms: u64)
lessons/10/exercises/src/lib.rs:848
↓ 14 callers
Method
write
TODO: implement a method that writes the given byte buffer at the specified address. You will need to overwrite (or even outright remove) existing buf
lessons/06/exercises/assignments/tests/04_memory_map.rs:113
↓ 13 callers
Method
send
(&mut self, msg: ClientToServerMsg)
lessons/08/exercises/src/lib.rs:636
↓ 12 callers
Function
assert_almost_eq
(value: f64, expected: f64)
lessons/04/exercises/tests/01_shape.rs:65
↓ 12 callers
Method
into
(self)
archive/2023/projects/assembly-interpret/03/src/memory.rs:35
↓ 12 callers
Function
make_map
TODO(bonus): The tests below are bonus tests that will only work if you implement defragmentation. #[test] fn lower_allocation_neighbour() {
lessons/06/exercises/assignments/tests/04_memory_map.rs:330
↓ 12 callers
Function
node_leaf
(t: T)
lessons/05/exercises/tests/01_binary_tree.rs:282
↓ 11 callers
Method
finish
Finish the node with the given `id` with the provided `value`. If the given node is not **ready** (or does not exist), the function should panic. Ret
lessons/05/exercises/tests/03_graph.rs:75
↓ 10 callers
Method
recv
(&mut self)
lessons/09/exercises/src/lib.rs:692
↓ 10 callers
Method
recv
(&mut self)
lessons/08/exercises/src/lib.rs:658
↓ 9 callers
Method
dm
(&mut self, to: &str, message: &str)
lessons/10/exercises/src/lib.rs:773
↓ 9 callers
Method
expect_error
(&mut self, expected_error: &str)
lessons/10/exercises/src/lib.rs:800
↓ 9 callers
Function
node
(t: T, s: BinaryTree<T>, l: BinaryTree<T>)
lessons/05/exercises/tests/01_binary_tree.rs:274
↓ 9 callers
Function
repeated
()
archive/2023/exercises/04/exercises/tests/06_count.rs:30
↓ 9 callers
Function
test_sort
(items: &mut [i64], expected: &[i64])
lessons/03/exercises/tests/05_bubble_sort.rs:65
↓ 8 callers
Method
expect_error
(&mut self, expected_error: &str)
lessons/09/exercises/src/lib.rs:680
↓ 8 callers
Method
len
Return the number of nodes in the graph.
lessons/05/exercises/tests/03_graph.rs:117
↓ 7 callers
Function
assert_almost_eq
(value: f64, expected: f64)
lessons/01/exercises/tests/03_struct.rs:58
↓ 7 callers
Method
expect_error
(&mut self, expected_error: &str)
lessons/08/exercises/src/lib.rs:646
↓ 7 callers
Method
read
(&self, expr: ReadableExpr<T>)
archive/2023/projects/assembly-interpret/04/src/cpu.rs:62
↓ 6 callers
Method
dm
(&mut self, to: &str, message: &str)
lessons/09/exercises/src/lib.rs:650
↓ 6 callers
Method
dm
(&mut self, to: &str, message: &str)
lessons/08/exercises/src/lib.rs:616
↓ 6 callers
Method
flush
(&mut self)
lessons/09/exercises/src/lib.rs:724
↓ 6 callers
Function
parse
(input: &str)
archive/2023/projects/assembly-interpret/02/src/parsing.rs:53
↓ 6 callers
Method
read
(&self, expr: ReadableExpr<T>)
archive/2023/projects/assembly-interpret/03/src/cpu.rs:62
↓ 6 callers
Function
skip_whitespace
(parser: P)
lessons/05/exercises/tests/02_parser_combinator.rs:493
↓ 5 callers
Function
check_output
(program_text: &str, input: &str, expected_output: &str)
lessons/02/exercises/tests/06_brainfuck_interpreter.rs:87
↓ 5 callers
Method
execute
( &self, line: &str, state: &mut InterpreterState, output: &mut dyn Write,
archive/2023/projects/shell-interpret/src/commands/change_dir.rs:14
↓ 5 callers
Method
ping
(&mut self)
lessons/10/exercises/src/lib.rs:753
↓ 5 callers
Method
remove
Remove a node from the graph. The `dependencies` and `dependents` links of affected nodes should be updated. If the id does not exist, the function s
lessons/05/exercises/tests/03_graph.rs:67
↓ 4 callers
Function
add_line
(line: usize, result: Result<T, ParseErrorKind>)
archive/2023/projects/assembly-interpret/04/src/parser.rs:118
↓ 4 callers
Function
check_map
(map: MemoryMap, data: &[(Address, &[u8])])
lessons/06/exercises/assignments/tests/04_memory_map.rs:335
↓ 4 callers
Method
close
(self)
lessons/10/exercises/src/lib.rs:820
↓ 4 callers
Method
close
(self)
lessons/08/exercises/src/lib.rs:666
↓ 4 callers
Function
leaf
Bonus tests #[test] fn iter_empty() { assert_eq!(leaf::<u32>().iter().next(), None); } #[test] fn iter_single() { ass
lessons/05/exercises/tests/01_binary_tree.rs:270
↓ 4 callers
Function
parse_program
(input: &str)
archive/2023/projects/assembly-interpret/03/src/parser.rs:34
↓ 4 callers
Method
write
(&mut self, expr: WriteExpr, value: u8)
archive/2023/projects/assembly-interpret/02/src/cpu.rs:72
↓ 3 callers
Function
add_line
(line: usize, result: Result<T, ParseErrorKind>)
archive/2023/projects/assembly-interpret/03/src/parser.rs:111
↓ 3 callers
Method
broadcast
(&self, source: SocketAddr, message: String)
archive/2023/projects/network-chat/02/src/chat.rs:27
↓ 3 callers
Function
count
Implement a function called `count`, which will receive a slice of strings, and it will return a hash map that will count the number of occurrences of
archive/2023/exercises/04/exercises/tests/06_count.rs:9
↓ 3 callers
Method
get_ip
(&self)
archive/2023/projects/assembly-interpret/04/src/cpu.rs:92
↓ 3 callers
Method
parse
(&mut self, input: &'a str)
lessons/05/exercises/tests/02_parser_combinator.rs:75
↓ 3 callers
Function
parse_dest_src
( line: usize, args: &str, )
archive/2023/projects/assembly-interpret/03/src/parser.rs:98
↓ 3 callers
Function
parse_dest_src
( line: usize, args: &str, )
archive/2023/projects/assembly-interpret/04/src/parser.rs:105
↓ 3 callers
Function
parse_readable_expr
(input: &str)
archive/2023/projects/assembly-interpret/04/src/parser.rs:122
↓ 3 callers
Method
ping
(&mut self)
lessons/09/exercises/src/lib.rs:628
↓ 3 callers
Method
ping
(&mut self)
lessons/08/exercises/src/lib.rs:594
↓ 3 callers
Method
progress
( &mut self, epoll: RawFd, new_futures: &mut Vec<Box<dyn Future>>, fds: &mut V
archive/2023/projects/network-chat/03/src/main.rs:63
↓ 3 callers
Function
read_message
(client: &mut Client)
archive/2023/projects/network-chat/03/src/main.rs:217
↓ 3 callers
Function
sleep
(duration_ms: u64)
lessons/08/exercises/src/lib.rs:710
↓ 3 callers
Method
write
(&mut self, expr: WritableExpr, value: T)
archive/2023/projects/assembly-interpret/03/src/cpu.rs:80
↓ 3 callers
Method
write
(&mut self, expr: WritableExpr, value: T)
archive/2023/projects/assembly-interpret/04/src/cpu.rs:80
↓ 2 callers
Method
add_command
(&mut self, command: T)
archive/2023/projects/shell-interpret/src/lib.rs:19
↓ 2 callers
Method
as_read
(&self)
archive/2023/projects/assembly-interpret/03/src/memory.rs:27
↓ 2 callers
Method
as_read
(&self)
archive/2023/projects/assembly-interpret/04/src/memory.rs:27
↓ 2 callers
Function
assert_duration
(f: F, check: Check)
lessons/07/exercises/tests/02_worker_queue.rs:235
↓ 2 callers
Method
check_closed
(mut self)
lessons/10/exercises/src/lib.rs:824
↓ 2 callers
Function
execute_instruction
(cpu: &mut Cpu, inst: Instruction)
archive/2023/projects/assembly-interpret/01/src/main.rs:165
↓ 2 callers
Method
expect_message
(&mut self, expected_from: &str, expected_message: &str)
lessons/09/exercises/src/lib.rs:658
↓ 2 callers
Method
expect_message
(&mut self, expected_from: &str, expected_message: &str)
lessons/10/exercises/src/lib.rs:781
↓ 2 callers
Method
expect_message
(&mut self, expected_from: &str, expected_message: &str)
lessons/08/exercises/src/lib.rs:624
↓ 2 callers
Function
lazy
Needed to break the recursion
lessons/05/exercises/tests/02_parser_combinator.rs:517
↓ 2 callers
Method
next
(&mut self)
archive/2023/projects/assembly-interpret/04/src/bin/main.rs:75
↓ 2 callers
Function
parse_readable_expr
(input: &str)
archive/2023/projects/assembly-interpret/03/src/parser.rs:115
↓ 2 callers
Method
print_prompt
(&self, output: &mut dyn Write)
archive/2023/projects/shell-interpret/src/lib.rs:38
↓ 2 callers
Method
read
(&mut self)
lessons/08/exercises/src/reader.rs:20
↓ 2 callers
Method
read
(&self, expr: ReadExpr)
archive/2023/projects/assembly-interpret/02/src/cpu.rs:55
↓ 2 callers
Method
read
(&self, expr: ReadExpr)
archive/2023/projects/assembly-interpret/01/src/main.rs:73
↓ 2 callers
Method
recv
(&mut self)
lessons/09/exercises/src/reader.rs:24
↓ 2 callers
Function
run_server
TODO: implement the following function called `run_server` It should start a chat server on a TCP/IP port assigned to it by the operating system and r
lessons/09/exercises/src/lib.rs:81
↓ 2 callers
Method
send
(&mut self, msg: T)
archive/2023/projects/network-chat/02/src/writer.rs:16
↓ 2 callers
Method
send
(&mut self, msg: ServerToClientMsg)
archive/2023/projects/network-chat/01/src/writer.rs:15
↓ 2 callers
Method
set_ip
(&mut self, ip: u64)
archive/2023/projects/assembly-interpret/04/src/cpu.rs:95
next →
1–100 of 835, ranked by callers