@@ -31,8 +31,8 @@ impl Row {
3131 /// Count the number of column required in the table grid.
3232 /// It takes into account horizontal spanning of cells. For
3333 /// example, a cell with an hspan of 3 will add 3 column to the grid
34- #[ deprecated( since="0.8.0" , note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)" ) ]
35- pub fn column_count ( & self ) -> usize {
34+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
35+ pub ( crate ) fn column_count ( & self ) -> usize {
3636 self . cells . iter ( ) . map ( |c| c. get_hspan ( ) ) . sum ( )
3737 }
3838
@@ -48,8 +48,8 @@ impl Row {
4848 }
4949
5050 /// Get the height of this row
51- #[ deprecated( since="0.8.0" , note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)" ) ]
52- pub fn get_height ( & self ) -> usize {
51+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
52+ fn get_height ( & self ) -> usize {
5353 let mut height = 1 ; // Minimum height must be 1 to print empty rows
5454 for cell in & self . cells {
5555 let h = cell. get_height ( ) ;
@@ -62,8 +62,8 @@ impl Row {
6262
6363 /// Get the minimum width required by the cell in the column `column`.
6464 /// Return 0 if the cell does not exist in this row
65- #[ deprecated( since="0.8.0" , note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)" ) ]
66- pub fn get_column_width ( & self , column : usize , format : & TableFormat ) -> usize {
65+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
66+ pub ( crate ) fn get_column_width ( & self , column : usize , format : & TableFormat ) -> usize {
6767 let mut i = 0 ;
6868 for c in & self . cells {
6969 if i + c. get_hspan ( ) > column {
@@ -186,8 +186,8 @@ impl Row {
186186
187187 /// Print the row to `out`, with `separator` as column separator, and `col_width`
188188 /// specifying the width of each columns. Returns the number of printed lines
189- #[ deprecated( since="0.8.0" , note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)" ) ]
190- pub fn print < T : Write + ?Sized > ( & self ,
189+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
190+ pub ( crate ) fn print < T : Write + ?Sized > ( & self ,
191191 out : & mut T ,
192192 format : & TableFormat ,
193193 col_width : & [ usize ] )
@@ -197,8 +197,8 @@ impl Row {
197197
198198 /// Print the row to terminal `out`, with `separator` as column separator, and `col_width`
199199 /// specifying the width of each columns. Apply style when needed. returns the number of printed lines
200- #[ deprecated( since="0.8.0" , note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)" ) ]
201- pub fn print_term < T : Terminal + ?Sized > ( & self ,
200+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
201+ pub ( crate ) fn print_term < T : Terminal + ?Sized > ( & self ,
202202 out : & mut T ,
203203 format : & TableFormat ,
204204 col_width : & [ usize ] )
0 commit comments