From 666af3ff3eba304d1f472206c729db1e36f5d9ea Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 14 Jul 2018 08:00:50 -0700 Subject: [PATCH] sketch out the interface for two future functions --- src/screen.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/screen.rs b/src/screen.rs index c73af2fb4..970d671de 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -383,6 +383,19 @@ impl Screen { result } + + /// Computes the change stream required to make `self` have the same + /// screen contents as `other`. + pub fn diff_screens(&self, _other: &Screen) -> Vec { + unimplemented!() + } + + /// Draw the contents of `other` into self at the specified coordinates. + /// The required updates are recorded as Change entries as well as stored + /// in the screen line/cell data. + pub fn draw_from_screen(&mut self, _other: &Screen, _x: usize, _y: usize) { + unimplemented!() + } } /// Applies a Position update to either the x or y position.