Rewrite Cellbuffer Debug impl
parent
db69349251
commit
ccc083cf88
|
@ -71,13 +71,16 @@ pub struct CellBuffer {
|
||||||
|
|
||||||
impl fmt::Debug for CellBuffer {
|
impl fmt::Debug for CellBuffer {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
write!(
|
f.debug_struct("CellBuffer")
|
||||||
f,
|
.field("cols", &self.cols)
|
||||||
"CellBuffer {{ cols: {}, rows: {}, buf: {} cells",
|
.field("rows", &self.rows)
|
||||||
self.cols,
|
.field("buf cells", &self.buf.len())
|
||||||
self.rows,
|
.field("default_cell", &self.default_cell)
|
||||||
self.buf.len()
|
.field("ascii_drawing", &self.ascii_drawing)
|
||||||
)
|
.field("growable", &self.growable)
|
||||||
|
.field("tag_table", &self.tag_table)
|
||||||
|
.field("tag_associations", &self.tag_associations)
|
||||||
|
.finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue