summaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <pierre.henri.symoneaux@gmail.com>2019-08-26 23:48:51 +0200
committerPierre-Henri Symoneaux <pierre.henri.symoneaux@gmail.com>2019-08-26 23:48:51 +0200
commitcf7dca33e2e2131c20e4bbc34ad222c5e6edc29a (patch)
tree6095c3ef10e7104d32b9c93e35d173cc243ad95f /src/cell.rs
parent6bb234c979f8153f8ee8eede5cbb9a1ae2658f23 (diff)
Privatize deprecated functions functions for #87HEADmaster
Diffstat (limited to 'src/cell.rs')
-rw-r--r--src/cell.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cell.rs b/src/cell.rs
index 4b54f19..39c418b 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -176,14 +176,14 @@ impl Cell {
}
/// Return the height of the cell
- #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
- pub fn get_height(&self) -> usize {
+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
+ pub (crate) fn get_height(&self) -> usize {
self.content.len()
}
/// Return the width of the cell
- #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
- pub fn get_width(&self) -> usize {
+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
+ pub (crate) fn get_width(&self) -> usize {
self.width
}
@@ -206,8 +206,8 @@ impl Cell {
/// `idx` is the line index to print. `col_width` is the column width used to
/// fill the cells with blanks so it fits in the table.
/// If `ìdx` is higher than this cell's height, it will print empty content
- #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
- pub fn print<T: Write + ?Sized>(
+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
+ pub (crate) fn print<T: Write + ?Sized>(
&self,
out: &mut T,
idx: usize,
@@ -219,8 +219,8 @@ impl Cell {
}
/// Apply style then call `print` to print the cell into a terminal
- #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
- pub fn print_term<T: Terminal + ?Sized>(
+ // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")]
+ pub (crate) fn print_term<T: Terminal + ?Sized>(
&self,
out: &mut T,
idx: usize,