11pub use termcolor:: Color ;
22
3- /// Struct for configuring a [`Cell`](struct. Cell.html )'s format
3+ /// Struct for configuring a [`Cell`](crate:: Cell)'s format
44#[ derive( Debug , Clone , Copy , Default ) ]
55pub struct CellFormat {
66 pub ( crate ) justify : Justify ,
@@ -13,75 +13,75 @@ pub struct CellFormat {
1313}
1414
1515impl CellFormat {
16- /// Creates a new builder for [`CellFormat`](struct. CellFormat.html )
16+ /// Creates a new builder for [`CellFormat`](crate::format:: CellFormat)
1717 #[ inline]
1818 pub fn builder ( ) -> CellFormatBuilder {
1919 Default :: default ( )
2020 }
2121}
2222
23- /// Builder for [`CellFormat`](struct. CellFormat.html )
23+ /// Builder for [`CellFormat`](crate::format:: CellFormat)
2424#[ derive( Debug , Default ) ]
2525pub struct CellFormatBuilder ( CellFormat ) ;
2626
2727impl CellFormatBuilder {
28- /// Justify contents of a [`Cell`](struct. Cell.html )
28+ /// Justify contents of a [`Cell`](crate:: Cell)
2929 #[ inline]
3030 pub fn justify ( mut self , justify : Justify ) -> Self {
3131 self . 0 . justify = justify;
3232 self
3333 }
3434
35- /// Align contents of a [`Cell`](struct. Cell.html )
35+ /// Align contents of a [`Cell`](crate:: Cell)
3636 #[ inline]
3737 pub fn align ( mut self , align : Align ) -> Self {
3838 self . 0 . align = align;
3939 self
4040 }
4141
42- /// Sets padding of a [`Cell`](struct. Cell.html )
42+ /// Sets padding of a [`Cell`](crate:: Cell)
4343 #[ inline]
4444 pub fn padding ( mut self , padding : Padding ) -> Self {
4545 self . 0 . padding = padding;
4646 self
4747 }
4848
49- /// Set foreground color of a [`Cell`](struct. Cell.html )
49+ /// Set foreground color of a [`Cell`](crate:: Cell)
5050 #[ inline]
5151 pub fn foreground_color ( mut self , foreground_color : Option < Color > ) -> Self {
5252 self . 0 . foreground_color = foreground_color;
5353 self
5454 }
5555
56- /// Set background color of a [`Cell`](struct. Cell.html )
56+ /// Set background color of a [`Cell`](crate:: Cell)
5757 #[ inline]
5858 pub fn background_color ( mut self , background_color : Option < Color > ) -> Self {
5959 self . 0 . background_color = background_color;
6060 self
6161 }
6262
63- /// Set contents of [`Cell`](struct. Cell.html ) to be bold
63+ /// Set contents of [`Cell`](crate:: Cell) to be bold
6464 #[ inline]
6565 pub fn bold ( mut self , bold : bool ) -> Self {
6666 self . 0 . bold = bold;
6767 self
6868 }
6969
70- /// Set contents of [`Cell`](struct. Cell.html ) to be underlined
70+ /// Set contents of [`Cell`](crate:: Cell) to be underlined
7171 #[ inline]
7272 pub fn underline ( mut self , underline : bool ) -> Self {
7373 self . 0 . underline = underline;
7474 self
7575 }
7676
77- /// Build [`CellFormat`](struct. CellFormat.html )
77+ /// Build [`CellFormat`](crate::format:: CellFormat)
7878 #[ inline]
7979 pub fn build ( self ) -> CellFormat {
8080 self . 0
8181 }
8282}
8383
84- /// Used to horizontally justify contents of a [`Cell`](struct. Cell.html )
84+ /// Used to horizontally justify contents of a [`Cell`](crate:: Cell)
8585#[ derive( Debug , Clone , Copy ) ]
8686pub enum Justify {
8787 /// Justifies contents to left
@@ -99,7 +99,7 @@ impl Default for Justify {
9999 }
100100}
101101
102- /// Used to vertically align contents of a [`Cell`](struct. Cell.html )
102+ /// Used to vertically align contents of a [`Cell`](crate:: Cell)
103103#[ derive( Debug , Clone , Copy ) ]
104104pub enum Align {
105105 /// Aligns contents to top
@@ -117,7 +117,7 @@ impl Default for Align {
117117 }
118118}
119119
120- /// Used to add padding to the contents of a [`Cell`](struct. Cell.html )
120+ /// Used to add padding to the contents of a [`Cell`](crate:: Cell)
121121#[ derive( Debug , Clone , Copy , Default ) ]
122122pub struct Padding {
123123 /// Left padding
@@ -131,46 +131,46 @@ pub struct Padding {
131131}
132132
133133impl Padding {
134- /// Creates a new builder for [`Padding`](struct. Padding.html )
134+ /// Creates a new builder for [`Padding`](crate::format:: Padding)
135135 pub fn builder ( ) -> PaddingBuilder {
136136 Default :: default ( )
137137 }
138138}
139139
140- /// Builder for [`Padding`](struct. Padding.html )
140+ /// Builder for [`Padding`](crate::format:: Padding)
141141#[ derive( Debug , Default ) ]
142142pub struct PaddingBuilder ( Padding ) ;
143143
144144impl PaddingBuilder {
145- /// Sets left padding of a [`Cell`](struct. Cell.html )
145+ /// Sets left padding of a [`Cell`](crate:: Cell)
146146 #[ inline]
147147 pub fn left ( mut self , left_padding : usize ) -> Self {
148148 self . 0 . left = left_padding;
149149 self
150150 }
151151
152- /// Sets right padding of a [`Cell`](struct. Cell.html )
152+ /// Sets right padding of a [`Cell`](crate:: Cell)
153153 #[ inline]
154154 pub fn right ( mut self , right_padding : usize ) -> Self {
155155 self . 0 . right = right_padding;
156156 self
157157 }
158158
159- /// Sets top padding of a [`Cell`](struct. Cell.html )
159+ /// Sets top padding of a [`Cell`](crate:: Cell)
160160 #[ inline]
161161 pub fn top ( mut self , top_padding : usize ) -> Self {
162162 self . 0 . top = top_padding;
163163 self
164164 }
165165
166- /// Sets bottom padding of a [`Cell`](struct. Cell.html )
166+ /// Sets bottom padding of a [`Cell`](crate:: Cell)
167167 #[ inline]
168168 pub fn bottom ( mut self , bottom_padding : usize ) -> Self {
169169 self . 0 . bottom = bottom_padding;
170170 self
171171 }
172172
173- /// Build [`Padding`](struct. Padding.html )
173+ /// Build [`Padding`](crate::format:: Padding)
174174 #[ inline]
175175 pub fn build ( self ) -> Padding {
176176 self . 0
0 commit comments