1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//! This module contains a [`Span`] settings, it helps to
//! make a cell take more space then it generally takes.
//!
//! # Example
//!
//! ```
//! use tabled::{object::Cell, Modify, TableIteratorExt, Span};
//!
//! let data = [[1, 2, 3], [4, 5, 6]];
//!
//! let table = data.table()
//! .with(Modify::new(Cell(2, 0)).with(Span::column(2)))
//! .with(Modify::new(Cell(0, 1)).with(Span::column(2)))
//! .to_string();
//!
//! assert_eq!(
//! table,
//! concat!(
//! "+---+---+---+\n",
//! "| 0 | 1 |\n",
//! "+---+---+---+\n",
//! "| 1 | 2 | 3 |\n",
//! "+---+---+---+\n",
//! "| 4 | 6 |\n",
//! "+---+---+---+",
//! )
//! )
//! ```
use ;
use crate::;
/// Span represent a horizontal/column span setting for any cell on a [`Table`].
///
/// It will be ignored if:
/// - cell position is out of scope
/// - size is bigger then the total number of columns.
/// - size is bigger then the total number of rows.
///
/// ```rust,no_run
/// # use tabled::{Style, Span, Modify, object::Columns, Table};
/// # let data: Vec<&'static str> = Vec::new();
/// let table = Table::new(&data)
/// .with(Modify::new(Columns::single(0)).with(Span::column(2)));
/// ```
///
/// [`Table`]: crate::Table
;