MCPcopy Create free account

hub / github.com/Nukesor/comfy-table / functions

Functions261 in github.com/Nukesor/comfy-table

↓ 1 callersMethodhas_left_border
The left border is drawn as soon as any component in the leftmost column exists.
src/style/table_style.rs:277
↓ 1 callersMethodhas_right_border
The right border is drawn as soon as any component in the rightmost column exists.
src/style/table_style.rs:287
↓ 1 callersMethodhas_row_separator
(&self)
src/style/table_style.rs:272
↓ 1 callersMethodhas_top_border
(&self)
src/style/table_style.rs:260
↓ 1 callersMethodhas_vertical_lines
Vertical lines are drawn as soon as any component between two columns exists.
src/style/table_style.rs:297
↓ 1 callersMethodjunction
Set the junction character.
src/style/table_style.rs:59
↓ 1 callersFunctionlongest_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 callersFunctionmap_attribute
(attribute: Attribute)
src/style/mod.rs:42
↓ 1 callersFunctionmap_color
(color: Color)
src/style/mod.rs:48
↓ 1 callersFunctionmeasure_text_width
(s: &str)
src/utils/formatting/content_split/custom_styling.rs:11
↓ 1 callersFunctionoptimize_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 callersMethodremove_constraint
Remove any constraint on this column
src/column.rs:95
↓ 1 callersMethodrow_iter
Iterator over all rows
src/table.rs:607
↓ 1 callersMethodrow_mut
Mutable reference to a specific row
src/table.rs:602
↓ 1 callersMethodrow_separator
Set the line that's drawn between rows.
src/style/table_style.rs:214
↓ 1 callersMethodset_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 callersMethodset_delimiter
(mut self, delimiter: char)
src/cell.rs:62
↓ 1 callersMethodshould_style
(&self)
src/table.rs:391
↓ 1 callersFunctionsplit_line_by_delimiter
Split a line into its individual parts along the given delimiter.
src/utils/formatting/content_split/normal.rs:13
↓ 1 callersFunctionsplit_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 callersFunctionstyle_line
(line: String, cell: &Cell)
src/utils/formatting/content_format.rs:331
↓ 1 callersMethodtop_border
Set the top border of the table.
src/style/table_style.rs:190
↓ 1 callersFunctionuse_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 callersMethodwith_rounded_corners
Convert the outer corners to round corners. ```text ╭───────┬───────╮ │ Hello │ there │ ╞═══════╪═══════╡ │ a ┆ b │ ├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┤ │ c
src/style/table_style.rs:235
↓ 1 callersMethodwith_solid_inner_borders
Convert the inner borders to solid lines. ```text ┌───────┬───────┐ │ Hello │ there │ ╞═══════╪═══════╡ │ a │ b │ ├───────┼───────┤ │ c │
src/style/table_style.rs:253
Methodadd_attribute
(mut self, attribute: Attribute)
src/cell.rs:127
Methodadd_attributes
(mut self, mut attribute: Vec<Attribute>)
src/cell.rs:136
Functionadd_predicate_multi_false
()
tests/all/add_predicate.rs:167
Functionadd_predicate_multi_mixed
()
tests/all/add_predicate.rs:196
Functionadd_predicate_multi_true
()
tests/all/add_predicate.rs:133
Functionadd_predicate_multi_wrong_rows_count
()
tests/all/add_predicate.rs:238
Functionadd_predicate_single_false
()
tests/all/add_predicate.rs:38
Functionadd_predicate_single_mixed
()
tests/all/add_predicate.rs:67
Functionadd_predicate_single_true
()
tests/all/add_predicate.rs:5
Functionadd_predicate_single_wrong_row_count
()
tests/all/add_predicate.rs:104
Functionansi_aware_split_test
()
src/utils/formatting/content_split/custom_styling.rs:171
Functionarrange
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
Methodbg
(mut self, color: Color)
src/cell.rs:110
Functionbuild_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
Functionbuild_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
Functionbuild_readme_table
()
benches/build_tables.rs:6
Functionbuild_tables
(crit: &mut Criterion)
benches/build_tables.rs:98
Functionbuild_tables
(crit: &mut Criterion)
benches/build_large_table.rs:35
Functioncell_alignment
()
tests/all/alignment_test.rs:7
Methodcolumn
Get a reference to a specific column.
src/table.rs:494
Methodcolumn_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
Methodcolumn_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
Functioncolumns_and_rows
()
tests/all/property_test.rs:98
Functioncombined_features
()
tests/all/combined_test.rs:35
Functionconstraints_bigger_than_table_width
()
tests/all/constraints_test.rs:133
Functioncontent_arrangement
Pick any of the three existing ContentArrangement types for the table.
tests/all/property_test.rs:6
Functioncustom_padding
()
tests/all/padding_test.rs:7
Methoddefault
()
src/table.rs:53
Functiondetermine_max_table_width
(table: &Table)
tests/all/property_test.rs:329
Functiondistribute_space_after_split
()
tests/all/content_arrangement_test.rs:71
Functiondynamic_exact_width
()
tests/all/content_arrangement_test.rs:173
Functiondynamic_full_width
()
tests/all/content_arrangement_test.rs:148
Functiondynamic_full_width_after_split
()
tests/all/content_arrangement_test.rs:123
Functiondynamic_slightly_smaller
()
tests/all/content_arrangement_test.rs:212
Functionempty_table
(#[case] arrangement: ContentArrangement)
tests/all/constraints_test.rs:329
Functionenforce_constraints
( table: &Table, formatted: String, lines: Vec<String>, )
tests/all/property_test.rs:392
Methodfg
(mut self, color: Color)
src/cell.rs:94
Functionfixed_max_min_constraints
()
tests/all/constraints_test.rs:26
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/table.rs:47
Methodfrom
(cells: T)
src/row.rs:101
Methodfrom
(content: T)
src/cell.rs:151
Functionfull_custom_delimiters
()
tests/all/custom_delimiter_test.rs:9
Functiongiant_table
()
tests/all/edge_cases.rs:5
Functionhidden_columns
()
tests/all/hidden_test.rs:60
Functionhidden_columns_with_dynamic_adjustment
()
tests/all/hidden_test.rs:78
Functionlines
()
tests/all/simple_test.rs:81
Functionlower_fixed_boundary
()
tests/all/constraints_test.rs:351
Functionlower_fixed_boundary_with_split
()
tests/all/constraints_test.rs:381
Functionmain
()
examples/readme_table_no_tty.rs:6
Functionmain
()
examples/inner_style.rs:3
Functionmain
()
examples/readme_table.rs:3
Functionmap_attribute
Map the internal mirrored [Attribute] to the actually used [crossterm::style::Attribute]
src/style/attribute.rs:97
Functionmap_color
Map the internal mirrored [Color] enum to the actually used [crossterm::style::Color].
src/style/color.rs:95
Functionmax_100_percentage
()
tests/all/constraints_test.rs:199
Functionmax_height
We test the Row::max_height with a few values.
tests/all/property_test.rs:73
Functionmax_padding
()
tests/all/edge_cases.rs:15
Functionmax_percentage
()
tests/all/constraints_test.rs:254
Functionmeasure_text_width_osc8_test
()
src/utils/formatting/content_split/custom_styling.rs:191
Functionmin_max_boundary
()
tests/all/constraints_test.rs:288
Functionmissing_column_table
()
tests/all/simple_test.rs:35
Functionmulti_character_cjk_word_splitting
()
tests/all/utf_8_characters.rs:60
Functionmulti_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
Functionmulti_character_utf8_word_splitting
()
tests/all/utf_8_characters.rs:38
Methodnew
()
src/row.rs:19
Methodnew
(index: usize)
src/column.rs:45
Methodnew
Create a new table with default ASCII styling.
src/table.rs:60
Methodnew
(content: T)
src/cell.rs:27
Methodnew
(column: &Column, mut content_width: u16)
src/utils/mod.rs:30
Methodnew
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
Methodnew
Create a [LineStyle] with all four parts set.
src/style/table_style.rs:27
Methodnew_owned
Create a new Cell from an owned String
src/cell.rs:32
Functionno_style_styled_table
()
tests/all/styling_test.rs:52
Functionno_style_styled_table
()
tests/all/inner_style_test.rs:58
Methodnone
Create a line without any parts set.
src/style/table_style.rs:37
Functiononly_hidden_columns
()
tests/all/hidden_test.rs:107
← previousnext →101–200 of 261, ranked by callers