Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/8051Enthusiast/biodiff
/ functions
Functions
441 in github.com/8051Enthusiast/biodiff
⨍
Functions
441
◇
Types & classes
99
↓ 19 callers
Function
on_hexview
Executes function either on aligned or unaligned hexview in current cursive context
src/dialog.rs:92
↓ 18 callers
Function
quit_with_error
Convenience function for quitting and uninitializing the terminal before it
src/backend.rs:389
↓ 17 callers
Method
append_text
(&mut self, text: &str, _: Color, _: BackgroundColor, _: Effect)
src/backend.rs:296
↓ 16 callers
Method
refresh
Updates the view and draws it.
src/view/aligned.rs:262
↓ 13 callers
Method
bounds
(&self)
src/datastruct.rs:37
↓ 13 callers
Function
close_top_maybe_quit
We only want to quit cursive and return to our crossterm native implementation when no other windows are open. This function wraps that behaviour.
src/dialog.rs:104
↓ 12 callers
Method
get_size_y
gets the number of rows of the view rectangle
src/cursor.rs:60
↓ 12 callers
Function
help_window
A help window that displays a fixed text.
src/dialog.rs:116
↓ 12 callers
Method
next
(&mut self)
src/datastruct.rs:214
↓ 11 callers
Method
get_signed
(&self, index: isize)
src/datastruct.rs:41
↓ 11 callers
Method
is_first
Cursor is enabled on the first view
src/cursor.rs:197
↓ 11 callers
Method
move_around
Moves the cursor xdiff down and ydiff to the right, redrawing/scrolling if necessary.
src/view/aligned.rs:192
↓ 11 callers
Method
move_around
moves the cursor xdiff down and ydiff to the right, redrawing/scrolling if necessary
src/view/unaligned.rs:233
↓ 10 callers
Method
cursor_index
returns the current index of the cursor into the data
src/view/unaligned.rs:185
↓ 10 callers
Method
get_size_x
gets the number of columns of the view rectangle
src/cursor.rs:56
↓ 10 callers
Method
goto_index
jump to a given index with the currently active cursor
src/view/unaligned.rs:370
↓ 10 callers
Method
is_second
Cursor is enabled on the second view
src/cursor.rs:204
↓ 10 callers
Function
test_matches
test whether the given regex matches the underlined ranges and only them
hexagex/src/lib.rs:983
↓ 9 callers
Method
get_index
gets the index of the cursor within the view rectangle
src/cursor.rs:64
↓ 9 callers
Method
refresh
Resizes and redraws.
src/view/unaligned.rs:68
↓ 8 callers
Function
continue_dialog
Wraps the callback in a box that also returns DelegateEvent::Continue
src/dialog.rs:172
↓ 8 callers
Method
get
gets the current preset at the cursor, giving back the default if the cursor doesn't have an index
src/preset.rs:56
↓ 8 callers
Method
get_y
gets the row of the cursor
src/cursor.rs:52
↓ 8 callers
Function
parse_box
parses the content of a EditView with a given name, appending errors into err on failure and writing into val on success
src/dialog.rs:77
↓ 8 callers
Function
validated_box
A box that changes color when the content is invalid
src/dialog.rs:53
↓ 8 callers
Function
write_with_span
write the regex with an underline given by span
hexagex/src/lib.rs:795
↓ 7 callers
Method
cursor_index
returns the current index of the cursor into the data
src/view/aligned.rs:151
↓ 7 callers
Method
first
(&self)
src/datastruct.rs:68
↓ 7 callers
Method
get_data
Returns the two arrays
src/datastruct.rs:152
↓ 7 callers
Method
index_address
get the index of the current file address with the side given by `right`
src/view/aligned.rs:273
↓ 7 callers
Method
last
(&self)
src/datastruct.rs:72
↓ 7 callers
Method
redraw
Redraws the current view without checking and updating the view for changes.
src/view/aligned.rs:251
↓ 7 callers
Method
redraw
Redraws without checking for resize. clear indicates whether the screen should be cleared before.
src/view/unaligned.rs:57
↓ 7 callers
Method
select
selects the preset at the cursor
src/preset.rs:111
↓ 7 callers
Method
selection
(&self)
src/control.rs:138
↓ 7 callers
Method
set_line
(&mut self, _: usize)
src/backend.rs:292
↓ 6 callers
Function
byte
(data: ByteData)
src/style.rs:32
↓ 6 callers
Method
clear
(&mut self, cursor_act: CursorActive)
src/search.rs:213
↓ 6 callers
Method
get_content
Gets a useful form of the information contained in the alignement data for printing.
src/view/aligned.rs:96
↓ 6 callers
Method
get_x
gets the column of the cursor
src/cursor.rs:48
↓ 6 callers
Method
goto_index
jump to a given index with the currently active cursor
src/view/aligned.rs:267
↓ 6 callers
Method
set_pos
(&mut self, _: usize, _: usize)
src/backend.rs:294
↓ 5 callers
Method
addr_size
(&self)
src/style.rs:339
↓ 5 callers
Method
align
(&self, x: &[u8], y: &[u8], mode: InternalMode)
src/align.rs:311
↓ 5 callers
Method
extend_front
(&mut self, other: &[T])
src/datastruct.rs:60
↓ 5 callers
Method
hor_half_width
width of a screen half when in horizontal split
src/doublehex.rs:124
↓ 5 callers
Method
is_active
List of whether view is enabled
src/cursor.rs:211
↓ 4 callers
Method
active_data_bounds
returns the bound of the index of the currently active cursor(s)
src/view/unaligned.rs:177
↓ 4 callers
Function
background_color
(x: ByteData)
src/style.rs:168
↓ 4 callers
Method
bytes_per_row
gets the number of bytes in a row this is different from the number of columns in case where the bytes would not all fit in a row
src/cursor.rs:74
↓ 4 callers
Method
color
(&self, a: ByteData, b: ByteData, row: usize)
src/style.rs:232
↓ 4 callers
Function
delegate_action
Converts an event to a delegation
src/control.rs:344
↓ 4 callers
Function
error_window
An error window that displays a fixed text.
src/dialog.rs:127
↓ 4 callers
Method
extend_end
(&mut self, other: &[T])
src/datastruct.rs:64
↓ 4 callers
Method
full_height
(&self)
src/doublehex.rs:137
↓ 4 callers
Method
full_width
(&self)
src/doublehex.rs:131
↓ 4 callers
Method
get_range
(&self, range: Range<isize>)
src/datastruct.rs:10
↓ 4 callers
Method
is_in_result
calculates whether the given address is inside a result
src/search.rs:119
↓ 4 callers
Function
is_text_escape_literal
(lit: &ast::Literal)
hexagex/src/lib.rs:254
↓ 4 callers
Method
jump_next_difference
Jump to the index where the next bytes are different
src/view/aligned.rs:401
↓ 4 callers
Method
jump_next_difference
Jump to the index where the next bytes are different
src/view/unaligned.rs:500
↓ 4 callers
Method
map_pair
Map same-value pairs from two elements together. The value must appear in at least one of them to be mapped.
hexagex/src/lib.rs:667
↓ 4 callers
Method
print_half
Prints one side of the line
src/doublehex.rs:32
↓ 4 callers
Method
print_hor
Prints the DoubleHexLine using the given backend at the line given in `line` with the views being on the left and right
src/doublehex.rs:85
↓ 4 callers
Method
print_unimportant
(&self, printer: &mut B, text: &str)
src/doublehex.rs:23
↓ 4 callers
Method
selection_status
(&self, offset: [isize; 2])
src/selection.rs:69
↓ 4 callers
Method
sequence
turn single element into a sequence of one element
hexagex/src/lib.rs:747
↓ 4 callers
Method
set
sets the preset at the cursor, returning false if the name is already taken
src/preset.rs:128
↓ 4 callers
Method
set_cursor
Paints the cursor at the current position
src/view/aligned.rs:155
↓ 4 callers
Method
set_cursor
Paints the cursor at the current position
src/view/unaligned.rs:85
↓ 4 callers
Method
size_per_byte
(&self)
src/style.rs:223
↓ 4 callers
Method
spawn
(mut self)
src/util.rs:29
↓ 4 callers
Method
vert_half_height
height of a screen half when in vertical split
src/doublehex.rs:128
↓ 3 callers
Method
add_second_shift
Adds a shift to the right vector, returns the change of index to the same element
src/datastruct.rs:131
↓ 3 callers
Method
aligner
(&self)
src/align.rs:88
↓ 3 callers
Method
append
Appends alignment data to the underlying DoubleVec. Returns true if something in view changed.
src/view/aligned.rs:230
↓ 3 callers
Function
apply_presets
(siv: &mut Cursive, global: &RadioGroup<u32>, semiglobal: &RadioGroup<u32>)
src/dialog/algorithm_presets.rs:128
↓ 3 callers
Function
binary_ast_to_final_ast
the way the conversion of the ast with hex literals work is that we collect "PartialSequences" which is basically an array of PartialElements, which a
hexagex/src/lib.rs:51
↓ 3 callers
Function
byte_effect
(x: ByteData)
src/style.rs:161
↓ 3 callers
Method
change_active_cursor
changes the active cursor to be cursor_act and moves back into bounds if the active cursor is outside bounds
src/view/aligned.rs:86
↓ 3 callers
Method
change_active_cursor
changes the active cursor to be cursor_act and moves back into bounds if the active cursor is outside bounds
src/view/unaligned.rs:105
↓ 3 callers
Method
clear_selection
clears the selection with the currently active cursors
src/view/aligned.rs:500
↓ 3 callers
Method
clear_selection
clears the selection with the currently active cursors
src/view/unaligned.rs:337
↓ 3 callers
Method
col
returns the logical column of the cursor
src/doublehex.rs:158
↓ 3 callers
Function
color_from_bytes
Insertions/Deletions are typically green, mismatches red and same bytes white
src/style.rs:185
↓ 3 callers
Function
config_path
()
src/config.rs:17
↓ 3 callers
Method
current_cursor_addresses
get the file addresses of the current cursors
src/view/aligned.rs:318
↓ 3 callers
Method
current_cursor_addresses
get the file addresses of the current cursors
src/view/unaligned.rs:423
↓ 3 callers
Method
current_info
(&self)
src/preset.rs:48
↓ 3 callers
Method
destruct
Turn an Aligned view into its part, including information on where it points
src/view/aligned.rs:587
↓ 3 callers
Method
disp
(&self, a: Option<u8>, short: bool)
src/style.rs:245
↓ 3 callers
Method
find
finds the preset with the given name, returning a cursor
src/preset.rs:99
↓ 3 callers
Method
get_first_addr
Gets the address of the left vector at a given index
src/datastruct.rs:135
↓ 3 callers
Method
get_second_addr
Gets the address of the right vector at a given index
src/datastruct.rs:143
↓ 3 callers
Method
get_size
gets the size of the view
src/cursor.rs:68
↓ 3 callers
Method
goto_index_both
go to an index on both sides, regardless of currently active cursor
src/view/unaligned.rs:207
↓ 3 callers
Function
hexagex
Convert the hexagex given in `hexagex` into a regex from `regex::bytes` you can use to match.
hexagex/src/lib.rs:20
↓ 3 callers
Method
jump_next_search_result
Jump to the next search result on either active cursor after the current index
src/view/aligned.rs:379
↓ 3 callers
Function
map_both
(r: Result<T, T>, f: impl FnOnce(T) -> S)
src/search.rs:79
↓ 3 callers
Method
max_row
returns the maximum row the cursor may be at
src/cursor.rs:178
next →
1–100 of 441, ranked by callers