Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Canop/codesort
/ functions
Functions
103 in github.com/Canop/codesort
⨍
Functions
103
◇
Types & classes
22
↓ 45 callers
Method
push
( &mut self, brace: char, )
src/brace_stack.rs:9
↓ 42 callers
Method
print_debug
(&self)
src/focused.rs:11
↓ 31 callers
Method
len
(&self)
src/loc_list.rs:48
↓ 26 callers
Method
to_index
(&self)
src/line_number.rs:60
↓ 19 callers
Method
sort
(self)
src/focused.rs:16
↓ 14 callers
Method
into_blocks
(self)
src/loc_list.rs:334
↓ 11 callers
Method
focus_around_line_index
( self, line_idx: LineIndex, )
src/loc_list.rs:110
↓ 10 callers
Method
depth
(&self)
src/brace_stack.rs:34
↓ 7 callers
Method
is_sortable
(&self)
src/loc.rs:58
↓ 7 callers
Method
range_around_line_index
( &self, line_idx: LineIndex, )
src/loc_list.rs:354
↓ 7 callers
Function
read
(mut reader: R)
src/analyzers/rust.rs:43
↓ 6 callers
Function
char_is_brace
(c: char)
src/brace_stack.rs:45
↓ 6 callers
Method
contains
( self, line: LineNumber, )
src/line_number.rs:75
↓ 6 callers
Method
focus
( mut self, range: LineNumberRange, )
src/loc_list.rs:86
↓ 6 callers
Method
next
(&mut self)
src/line_number.rs:89
↓ 6 callers
Method
starts_with
Whether the deindented content starts with the given string
src/loc.rs:43
↓ 4 callers
Method
count_blank_lines_at_start
(&self)
src/loc_list.rs:170
↓ 4 callers
Method
min_depth
Either the depth at start, or the depth at end, whichever is smaller
src/loc.rs:39
↓ 4 callers
Method
satisfies
( &self, wish: &Wish, )
src/gifts.rs:33
↓ 3 callers
Method
focus_all
(self)
src/loc_list.rs:79
↓ 3 callers
Method
full_range
If the list isn't empty, return a range covering it wholly
src/loc_list.rs:174
↓ 3 callers
Method
is_blank
(&self)
src/loc.rs:53
↓ 3 callers
Method
is_complete
(&self)
src/loc_list.rs:282
↓ 3 callers
Method
sort_range
( &mut self, range: LineNumberRange, )
src/loc_list.rs:52
↓ 2 callers
Method
apply
( self, blocks: &mut [LocList], )
src/spacing.rs:30
↓ 2 callers
Method
block_ranges_in_range
Assuming the provided range you pass is valid enough, give the ranges of the blocks in it.
src/loc_list.rs:288
↓ 2 callers
Method
focus_around_line_number
( self, line_number: LineNumber, )
src/loc_list.rs:117
↓ 2 callers
Method
has_content
(&self)
src/loc_list.rs:229
↓ 2 callers
Method
is_in
( &self, brace: char, )
src/brace_stack.rs:37
↓ 2 callers
Method
is_range_complete
Warning: doesn't check whether a bigger range wouldn't be complete too, so a range being complete doesn't mean it is a block.
src/loc_list.rs:254
↓ 2 callers
Method
print_range_debug
( &self, label: &str, range: LineNumberRange, )
src/loc_list.rs:130
↓ 2 callers
Method
range_around_line_number
( &self, line_number: LineNumber, )
src/loc_list.rs:348
↓ 2 callers
Method
range_has_content
( &self, range: LineNumberRange, )
src/loc_list.rs:204
↓ 1 callers
Method
analyzer
(self)
src/analyzers/mod.rs:31
↓ 1 callers
Method
block_range_of_line_number
Find the block the line is part of For example, if you give the opening line of a struct (i.e a like like `pub struct Foo {`), you'll get the whole s
src/loc_list.rs:317
↓ 1 callers
Function
char_is_gift
(c: char)
src/analyzers/rust.rs:14
↓ 1 callers
Method
cmp
( &self, other: &Self, )
src/loc.rs:73
↓ 1 callers
Method
cmp
( &self, other: &Self, )
src/loc_list.rs:417
↓ 1 callers
Function
find_rs_files
( dir: &'d Dir<'d>, files: &mut Vec<&'d include_dir::File<'d>>, )
tests/rust_self.rs:12
↓ 1 callers
Function
get_all_rust_files
( root: PathBuf, include: &[String], )
examples/list-invalid-files/main.rs:26
↓ 1 callers
Function
get_all_rust_files
( root: PathBuf, include: &[String], exclude: &[String], )
examples/sort-all-enums/main.rs:40
↓ 1 callers
Method
lang
(&self)
src/cli/args.rs:77
↓ 1 callers
Method
last_line_in_range_with_content
( &self, range: LineNumberRange, )
src/loc_list.rs:242
↓ 1 callers
Method
line_at_number
( &self, line_number: LineNumber, )
src/loc_list.rs:124
↓ 1 callers
Method
print_help
(&self)
src/cli/args.rs:66
↓ 1 callers
Method
range_exists
Check whether the range is valid and contains at least one line
src/loc_list.rs:196
↓ 1 callers
Function
run
Run the cli application
src/cli/mod.rs:17
↓ 1 callers
Method
sort_around_line_index
( &mut self, line_index: LineIndex, )
src/loc_list.rs:64
↓ 1 callers
Function
token_wishes
Return what the token calls for: we don't want to have blocks between this token and the character(s) they wish for, at the same depth. Only one wish
src/analyzers/rust.rs:30
↓ 1 callers
Method
trimmed_range
( &self, mut range: LineNumberRange, )
src/loc_list.rs:158
↓ 1 callers
Method
write_file
( &self, path: P, )
src/loc_list.rs:40
Method
check_range
( &self, range: LineNumberRange, )
src/loc_list.rs:184
Method
detect
(path: &Path)
src/analyzers/mod.rs:22
Method
eq
( &self, other: &Self, )
src/loc.rs:64
Method
eq
( &self, other: &Self, )
src/loc_list.rs:397
Method
fmt
( &self, f: &mut fmt::Formatter<'_>, )
src/loc.rs:90
Method
fmt
( &self, f: &mut fmt::Formatter<'_>, )
src/loc_list.rs:385
Method
fmt
( &self, f: &mut std::fmt::Formatter<'_>, )
src/line_number.rs:112
Method
from
(c: char)
src/gifts.rs:8
Method
from_index
(index: LineIndex)
src/line_number.rs:63
Method
from_str
(s: &str)
src/line_number.rs:34
Method
into_iter
(self)
src/line_number.rs:103
Method
last_line_with_content
(&self)
src/loc_list.rs:239
Method
last_significant_char
the last character which is not a whitespace or part of a comment
src/loc.rs:50
Method
last_significant_char
(&self)
src/loc_list.rs:233
Function
main
()
src/main.rs:3
Function
main
()
examples/list-invalid-files/main.rs:67
Function
main
()
examples/sort-all-enums/main.rs:86
Function
main
()
examples/explain/main.rs:20
Method
new
(number: usize)
src/line_number.rs:57
Method
of_line
Make a range spanning one line
src/line_number.rs:72
Method
partial_cmp
( &self, other: &Self, )
src/loc.rs:81
Method
partial_cmp
( &self, other: &Self, )
src/loc_list.rs:446
Method
print_debug
( &self, label: &str, )
src/loc_list.rs:148
Function
read
(mut reader: R)
src/analyzers/java.rs:12
Function
read
(mut reader: R)
src/analyzers/javascript.rs:13
Method
read
( reader: R, lang: Language, )
src/loc_list.rs:21
Method
read
( &self, mut reader: R, )
src/analyzers/mod.rs:51
Method
read_file
( path: P, lang: Language, )
src/loc_list.rs:33
Method
read_str
( s: &str, lang: Language, )
src/loc_list.rs:27
Method
recognize
(blocks: &[LocList])
src/spacing.rs:16
Method
sort_around_line_number
( &mut self, line_number: LineNumber, )
src/loc_list.rs:71
Function
test_balance_javascript
()
src/analyzers/javascript.rs:116
Function
test_codesort_source_files_are_complete
()
tests/rust_self.rs:37
Function
test_comma_in_trait_bound
()
tests/rust_comma_trait_bound.rs:67
Function
test_completion_rust
()
src/analyzers/rust.rs:425
Function
test_enum_variants_simple_with_spaces
()
tests/rust_enum_variants.rs:4
Function
test_enum_variants_simple_without_space
()
tests/rust_enum_variants.rs:57
Function
test_exclude_annotation_from_sort_key
()
tests/rust_annotations.rs:5
Function
test_find_struct_range
()
tests/rust_structs.rs:60
Function
test_javascript_assigns
()
tests/javascript_assigns.rs:4
Function
test_match_arms
()
src/analyzers/rust.rs:269
Function
test_match_big_enum
()
tests/rust_match_big_enum.rs:160
Function
test_match_enum
()
tests/rust_match_enum.rs:4
Function
test_match_literals
()
tests/rust_match_literals.rs:4
Function
test_match_struct
()
tests/rust_match_struct.rs:82
Function
test_match_struct
()
tests/rust_structs.rs:78
Function
test_match_struct_ranges
()
tests/rust_match_struct.rs:66
Function
test_match_struct_with_spaces
()
tests/rust_match_struct_with_spaces.rs:72
Function
test_restore_spacing_between
()
src/spacing.rs:65
next →
1–100 of 103, ranked by callers