diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-05 01:33:53 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-05 01:33:53 -0500 |
commit | f7de5f52ff1ae465f09a648cffb81192b6aecf45 (patch) | |
tree | e4d5374fb024300a48066e60f95ce8c9869cf9d0 /src | |
parent | 4b4a9c18e4c55a2ba6558ef614292db9c18ab88a (diff) | |
download | vt100-rust-f7de5f52ff1ae465f09a648cffb81192b6aecf45.tar.gz vt100-rust-f7de5f52ff1ae465f09a648cffb81192b6aecf45.zip |
add Clone and Debug to Screen
Diffstat (limited to 'src')
-rw-r--r-- | src/grid.rs | 1 | ||||
-rw-r--r-- | src/row.rs | 2 | ||||
-rw-r--r-- | src/screen.rs | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/grid.rs b/src/grid.rs index b277e34..a5bca31 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -1,3 +1,4 @@ +#[derive(Clone, Debug)] pub struct Grid { size: Size, pos: Pos, @@ -1,6 +1,6 @@ use std::convert::TryInto as _; -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Row { cells: Vec<crate::cell::Cell>, wrapped: bool, diff --git a/src/screen.rs b/src/screen.rs index 6a4a399..1aa9321 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -69,6 +69,7 @@ impl Default for MouseProtocolEncoding { } } +#[derive(Clone, Debug)] pub struct Screen { grid: crate::grid::Grid, alternate_grid: crate::grid::Grid, |