Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corrode/refactoring-rust
/ functions
Functions
302 in github.com/corrode/refactoring-rust
⨍
Functions
302
◇
Types & classes
24
Function
finds_mode
()
examples/16_mode.rs:28
Function
first_few
()
solutions/03_even_numbers.rs:17
Function
first_few
()
examples/03_even_numbers.rs:24
Function
first_ten
()
solutions/19_iterators.rs:48
Function
first_ten
()
examples/19_iterators.rs:31
Function
flattens_ages
()
solutions/14_room_occupancy.rs:65
Function
flattens_ages
()
examples/14_room_occupancy.rs:79
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
solutions/27_mini_redis.rs:96
Method
from
(e: ParseIntError)
solutions/18_parse_srt_timestamp.rs:18
Function
garbage_after_closing_quote_is_an_error
()
solutions/26_env_file_parser.rs:369
Function
get_debug
(config: &HashMap<String, String>)
examples/25_config_loader.rs:20
Function
get_host
(config: &HashMap<String, String>)
examples/25_config_loader.rs:13
Function
get_max_connections
(config: &HashMap<String, String>)
examples/25_config_loader.rs:27
Function
get_port
(config: &HashMap<String, String>)
examples/25_config_loader.rs:5
Function
handle_response
(resp: Response)
solutions/24_http_response_router.rs:42
Function
handle_response
(resp: Response)
examples/24_http_response_router.rs:14
Function
hash_inside_quotes_is_preserved
()
solutions/26_env_file_parser.rs:333
Function
highest_and_lowest
Given a string of space-separated integers, return the highest and lowest value. Solution highlights: - `split_whitespace` handles tabs and runs of s
solutions/15_highest_and_lowest.rs:9
Function
highest_and_lowest
Given a string of space-separated integers, return the highest and lowest value.
examples/15_highest_and_lowest.rs:4
Function
hset_returns_zero_on_field_update
()
solutions/27_mini_redis.rs:201
Function
hset_returns_zero_on_field_update
()
examples/27_mini_redis.rs:96
Function
hset_writes_to_hashes
()
solutions/27_mini_redis.rs:191
Function
hset_writes_to_hashes
()
examples/27_mini_redis.rs:86
Function
inline_comment_after_bare_value
()
solutions/26_env_file_parser.rs:363
Function
invalid_value_silently_defaults
()
solutions/25_config_loader.rs:76
Function
invalid_value_silently_defaults
()
examples/25_config_loader.rs:55
Function
is_excluded
(excluded: &Option<HashSet<PathBuf>>, path: &Path)
solutions/12_excluded_path.rs:12
Function
is_excluded
(excluded: &Option<HashSet<PathBuf>>, path: &Path)
examples/12_excluded_path.rs:7
Function
is_rust_source_file
(path: &Path)
solutions/05_path.rs:10
Function
is_rust_source_file
(path: &Path)
examples/05_path.rs:5
Function
is_valid_iban
Validate that a string looks like an IBAN. Solution highlights: - `match` with `|` arms maps country -> length declaratively. - `as_bytes()` indexing
solutions/23_iban_prefix_check.rs:9
Function
is_valid_iban
Validate that a string looks like an IBAN. Rules: - First two characters: ASCII letters (country code). - Next two characters: ASCII digits (check di
examples/23_iban_prefix_check.rs:9
Function
keeps_line_without_tag
()
solutions/17_trim_log_line.rs:38
Function
keeps_line_without_tag
()
examples/17_trim_log_line.rs:66
Function
line_number_tracks_across_lines
()
solutions/26_env_file_parser.rs:381
Function
lowercase_first
()
solutions/01_starts_with_uppercase.rs:27
Function
lowercase_first
()
examples/01_starts_with_uppercase.rs:25
Function
lpush_writes_to_lists_in_reverse_order
()
solutions/27_mini_redis.rs:179
Function
lpush_writes_to_lists_in_reverse_order
()
examples/27_mini_redis.rs:76
Function
max_adults_in_a_room
(rooms: &[RoomOccupancy])
solutions/14_room_occupancy.rs:21
Function
max_adults_in_a_room
(rooms: &[RoomOccupancy])
examples/14_room_occupancy.rs:26
Function
max_port
()
solutions/10_parse_port.rs:31
Function
max_port
()
examples/10_parse_port.rs:21
Function
missing_equals_is_an_error
()
solutions/26_env_file_parser.rs:349
Function
missing_file_is_error
()
solutions/09_error_handling.rs:36
Function
missing_file_is_error
()
examples/09_error_handling.rs:38
Function
most_common
(numbers: &[i32])
solutions/16_mode.rs:10
Function
most_common
(numbers: &[i32])
examples/16_mode.rs:5
Function
negatives
()
solutions/15_highest_and_lowest.rs:33
Function
negatives
()
examples/15_highest_and_lowest.rs:38
Function
nested_rs_file
()
solutions/05_path.rs:29
Function
nested_rs_file
()
examples/05_path.rs:25
Method
new
()
solutions/19_iterators.rs:16
Function
next_advances_state
()
solutions/19_iterators.rs:54
Function
no_duplicates_unchanged
()
solutions/11_dedup_runs.rs:32
Function
no_duplicates_unchanged
()
examples/11_dedup_runs.rs:40
Function
no_extension
()
solutions/05_path.rs:39
Function
no_extension
()
examples/05_path.rs:35
Function
non_digits_in_check
()
solutions/23_iban_prefix_check.rs:55
Function
non_digits_in_check
()
examples/23_iban_prefix_check.rs:73
Function
non_numeric_rejected
()
solutions/10_parse_port.rs:46
Function
non_numeric_rejected
()
examples/10_parse_port.rs:36
Function
none_means_nothing_excluded
()
solutions/12_excluded_path.rs:38
Function
none_means_nothing_excluded
()
examples/12_excluded_path.rs:37
Function
none_on_empty
()
solutions/06_nesting.rs:30
Function
none_on_empty
()
examples/06_nesting.rs:32
Function
none_on_none
()
solutions/06_nesting.rs:25
Function
none_on_none
()
examples/06_nesting.rs:27
Function
none_on_whitespace_only
()
solutions/06_nesting.rs:35
Function
none_on_whitespace_only
()
examples/06_nesting.rs:37
Function
not_found_fails
()
solutions/24_http_response_router.rs:91
Function
not_found_fails
()
examples/24_http_response_router.rs:79
Function
not_under_any_prefix
()
solutions/12_excluded_path.rs:33
Function
not_under_any_prefix
()
examples/12_excluded_path.rs:32
Function
nothing_and_other
()
solutions/02_better_match.rs:36
Function
nothing_and_other
()
examples/02_better_match.rs:31
Function
odd_bound
()
solutions/03_even_numbers.rs:28
Function
odd_bound
()
examples/03_even_numbers.rs:34
Function
ok_returns_body
()
solutions/24_http_response_router.rs:64
Function
ok_returns_body
()
examples/24_http_response_router.rs:52
Function
one_invalid
()
solutions/08_parse_ints.rs:27
Function
one_invalid
()
examples/08_parse_ints.rs:28
Function
one_minute_twentythree_seconds
()
solutions/18_parse_srt_timestamp.rs:45
Function
one_minute_twentythree_seconds
()
examples/18_parse_srt_timestamp.rs:35
Function
other_extension
()
solutions/05_path.rs:34
Function
other_extension
()
examples/05_path.rs:30
Function
out_of_range_rejected
()
solutions/10_parse_port.rs:41
Function
out_of_range_rejected
()
examples/10_parse_port.rs:31
Function
parse_port
(s: &str)
solutions/10_parse_port.rs:16
Function
parse_port
Parse a TCP port string into a `u16`.
examples/10_parse_port.rs:3
Function
parse_srt_timestamp
(s: &str)
solutions/18_parse_srt_timestamp.rs:23
Function
parse_srt_timestamp
(s: &str)
examples/18_parse_srt_timestamp.rs:5
Function
parse_values
(values: &[String])
solutions/08_parse_ints.rs:12
Function
parse_values
(values: Vec<String>)
examples/08_parse_ints.rs:6
Function
plain_rs_file
()
solutions/05_path.rs:24
Function
plain_rs_file
()
examples/05_path.rs:20
Function
primes
()
solutions/02_better_match.rs:22
Function
primes
()
examples/02_better_match.rs:17
Function
quicksort
Sort a slice of integers with quicksort. Solution highlights: - A slice pattern (`[pivot, rest @ ..]`) splits head from tail and handles the empty ba
solutions/22_quicksort.rs:13
Function
quicksort
Sort a slice of integers with quicksort. This version works, but it's a mouthful: it copies into a `Vec`, then juggles indices through a hand-written
examples/22_quicksort.rs:9
← previous
next →
101–200 of 302, ranked by callers