Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nukesor/comfy-table
/ functions
Functions
261 in github.com/Nukesor/comfy-table
⨍
Functions
261
◇
Types & classes
18
↓ 1 callers
Method
has_left_border
The left border is drawn as soon as any component in the leftmost column exists.
src/style/table_style.rs:277
↓ 1 callers
Method
has_right_border
The right border is drawn as soon as any component in the rightmost column exists.
src/style/table_style.rs:287
↓ 1 callers
Method
has_row_separator
(&self)
src/style/table_style.rs:272
↓ 1 callers
Method
has_top_border
(&self)
src/style/table_style.rs:260
↓ 1 callers
Method
has_vertical_lines
Vertical lines are drawn as soon as any component between two columns exists.
src/style/table_style.rs:297
↓ 1 callers
Method
junction
Set the junction character.
src/style/table_style.rs:59
↓ 1 callers
Function
longest_line_after_split
Part of Step 5. This function simulates the split of a Column's content and returns the length of the longest existing line after the split. A lot o
src/utils/arrangement/dynamic.rs:446
↓ 1 callers
Function
map_attribute
(attribute: Attribute)
src/style/mod.rs:42
↓ 1 callers
Function
map_color
(color: Color)
src/style/mod.rs:48
↓ 1 callers
Function
measure_text_width
(s: &str)
src/utils/formatting/content_split/custom_styling.rs:11
↓ 1 callers
Function
optimize_space_after_split
Step 5. Some Column's are too big and need to be split. We're now going to simulate how this might look like. The reason for this is the way we're sp
src/utils/arrangement/dynamic.rs:391
↓ 1 callers
Method
remove_constraint
Remove any constraint on this column
src/column.rs:95
↓ 1 callers
Method
row_iter
Iterator over all rows
src/table.rs:607
↓ 1 callers
Method
row_mut
Mutable reference to a specific row
src/table.rs:602
↓ 1 callers
Method
row_separator
Set the line that's drawn between rows.
src/style/table_style.rs:214
↓ 1 callers
Method
set_cell_alignment
Set the alignment for content inside of cells for this column.\ Note:** Alignment on a cell will always overwrite the column's setting.
src/column.rs:108
↓ 1 callers
Method
set_delimiter
(mut self, delimiter: char)
src/cell.rs:62
↓ 1 callers
Method
should_style
(&self)
src/table.rs:391
↓ 1 callers
Function
split_line_by_delimiter
Split a line into its individual parts along the given delimiter.
src/utils/formatting/content_split/normal.rs:13
↓ 1 callers
Function
split_line_by_delimiter
Split the line by the given deliminator without breaking ansi codes that contain the delimiter
src/utils/formatting/content_split/custom_styling.rs:16
↓ 1 callers
Function
style_line
(line: String, cell: &Cell)
src/utils/formatting/content_format.rs:331
↓ 1 callers
Method
top_border
Set the top border of the table.
src/style/table_style.rs:190
↓ 1 callers
Function
use_full_width
Step 6 - First branch At this point of time, all columns have been assigned some kind of width! The user wants to utilize the full width of the termi
src/utils/arrangement/dynamic.rs:511
↓ 1 callers
Method
with_rounded_corners
Convert the outer corners to round corners. ```text ╭───────┬───────╮ │ Hello │ there │ ╞═══════╪═══════╡ │ a ┆ b │ ├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┤ │ c
src/style/table_style.rs:235
↓ 1 callers
Method
with_solid_inner_borders
Convert the inner borders to solid lines. ```text ┌───────┬───────┐ │ Hello │ there │ ╞═══════╪═══════╡ │ a │ b │ ├───────┼───────┤ │ c │
src/style/table_style.rs:253
Method
add_attribute
(mut self, attribute: Attribute)
src/cell.rs:127
Method
add_attributes
(mut self, mut attribute: Vec<Attribute>)
src/cell.rs:136
Function
add_predicate_multi_false
()
tests/all/add_predicate.rs:167
Function
add_predicate_multi_mixed
()
tests/all/add_predicate.rs:196
Function
add_predicate_multi_true
()
tests/all/add_predicate.rs:133
Function
add_predicate_multi_wrong_rows_count
()
tests/all/add_predicate.rs:238
Function
add_predicate_single_false
()
tests/all/add_predicate.rs:38
Function
add_predicate_single_mixed
()
tests/all/add_predicate.rs:67
Function
add_predicate_single_true
()
tests/all/add_predicate.rs:5
Function
add_predicate_single_wrong_row_count
()
tests/all/add_predicate.rs:104
Function
ansi_aware_split_test
()
src/utils/formatting/content_split/custom_styling.rs:171
Function
arrange
Dynamic arrangement is disabled. Apply all non-relative constraints, and set the width of all remaining columns to the respective max content width.
src/utils/arrangement/disabled.rs:7
Method
bg
(mut self, color: Color)
src/cell.rs:110
Function
build_big_table
Create a dynamic 10x10 Table with width 400 and unevenly distributed content. On top of that, most of the columns have some kind of constraint.
benches/build_tables.rs:65
Function
build_huge_table
Create a dynamic 10x500 Table with width 300 and unevenly distributed content. There are no constraint, the content simply has to be formatted to fit
benches/build_large_table.rs:8
Function
build_readme_table
()
benches/build_tables.rs:6
Function
build_tables
(crit: &mut Criterion)
benches/build_tables.rs:98
Function
build_tables
(crit: &mut Criterion)
benches/build_large_table.rs:35
Function
cell_alignment
()
tests/all/alignment_test.rs:7
Method
column
Get a reference to a specific column.
src/table.rs:494
Method
column_cells_iter
Get a mutable iterator over cells of a column. The iterator returns a nested `Option<Option<Cell>>`, since there might be rows that are missing this s
src/table.rs:554
Method
column_count
Returns the number of currently present columns. ``` use comfy_table::Table; let mut table = Table::new(); table.set_header(vec!["Col 1", "Col 2", "
src/table.rs:130
Function
columns_and_rows
()
tests/all/property_test.rs:98
Function
combined_features
()
tests/all/combined_test.rs:35
Function
constraints_bigger_than_table_width
()
tests/all/constraints_test.rs:133
Function
content_arrangement
Pick any of the three existing ContentArrangement types for the table.
tests/all/property_test.rs:6
Function
custom_padding
()
tests/all/padding_test.rs:7
Method
default
()
src/table.rs:53
Function
determine_max_table_width
(table: &Table)
tests/all/property_test.rs:329
Function
distribute_space_after_split
()
tests/all/content_arrangement_test.rs:71
Function
dynamic_exact_width
()
tests/all/content_arrangement_test.rs:173
Function
dynamic_full_width
()
tests/all/content_arrangement_test.rs:148
Function
dynamic_full_width_after_split
()
tests/all/content_arrangement_test.rs:123
Function
dynamic_slightly_smaller
()
tests/all/content_arrangement_test.rs:212
Function
empty_table
(#[case] arrangement: ContentArrangement)
tests/all/constraints_test.rs:329
Function
enforce_constraints
( table: &Table, formatted: String, lines: Vec<String>, )
tests/all/property_test.rs:392
Method
fg
(mut self, color: Color)
src/cell.rs:94
Function
fixed_max_min_constraints
()
tests/all/constraints_test.rs:26
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/table.rs:47
Method
from
(cells: T)
src/row.rs:101
Method
from
(content: T)
src/cell.rs:151
Function
full_custom_delimiters
()
tests/all/custom_delimiter_test.rs:9
Function
giant_table
()
tests/all/edge_cases.rs:5
Function
hidden_columns
()
tests/all/hidden_test.rs:60
Function
hidden_columns_with_dynamic_adjustment
()
tests/all/hidden_test.rs:78
Function
lines
()
tests/all/simple_test.rs:81
Function
lower_fixed_boundary
()
tests/all/constraints_test.rs:351
Function
lower_fixed_boundary_with_split
()
tests/all/constraints_test.rs:381
Function
main
()
examples/readme_table_no_tty.rs:6
Function
main
()
examples/inner_style.rs:3
Function
main
()
examples/readme_table.rs:3
Function
map_attribute
Map the internal mirrored [Attribute] to the actually used [crossterm::style::Attribute]
src/style/attribute.rs:97
Function
map_color
Map the internal mirrored [Color] enum to the actually used [crossterm::style::Color].
src/style/color.rs:95
Function
max_100_percentage
()
tests/all/constraints_test.rs:199
Function
max_height
We test the Row::max_height with a few values.
tests/all/property_test.rs:73
Function
max_padding
()
tests/all/edge_cases.rs:15
Function
max_percentage
()
tests/all/constraints_test.rs:254
Function
measure_text_width_osc8_test
()
src/utils/formatting/content_split/custom_styling.rs:191
Function
min_max_boundary
()
tests/all/constraints_test.rs:288
Function
missing_column_table
()
tests/all/simple_test.rs:35
Function
multi_character_cjk_word_splitting
()
tests/all/utf_8_characters.rs:60
Function
multi_character_utf8_symbols
UTF-8 symbols that are longer than a single character are properly handled. This means, that comfy-table detects that they're longer than 1 character
tests/all/utf_8_characters.rs:8
Function
multi_character_utf8_word_splitting
()
tests/all/utf_8_characters.rs:38
Method
new
()
src/row.rs:19
Method
new
(index: usize)
src/column.rs:45
Method
new
Create a new table with default ASCII styling.
src/table.rs:60
Method
new
(content: T)
src/cell.rs:27
Method
new
(column: &Column, mut content_width: u16)
src/utils/mod.rs:30
Method
new
Step 1 Initialize the state and calculate the amount of remaining space that can be distributed between all remaining columns. Take the current term
src/utils/arrangement/dynamic.rs:37
Method
new
Create a [LineStyle] with all four parts set.
src/style/table_style.rs:27
Method
new_owned
Create a new Cell from an owned String
src/cell.rs:32
Function
no_style_styled_table
()
tests/all/styling_test.rs:52
Function
no_style_styled_table
()
tests/all/inner_style_test.rs:58
Method
none
Create a line without any parts set.
src/style/table_style.rs:37
Function
only_hidden_columns
()
tests/all/hidden_test.rs:107
← previous
next →
101–200 of 261, ranked by callers