summaryrefslogtreecommitdiffstats
path: root/src/frontier/image.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontier/image.rs')
-rw-r--r--src/frontier/image.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frontier/image.rs b/src/frontier/image.rs
index 3655580..5642297 100644
--- a/src/frontier/image.rs
+++ b/src/frontier/image.rs
@@ -51,6 +51,10 @@ impl<C: ColorSpace> Frontier for ImageFrontier<C> {
self.len - self.deleted
}
+ fn is_empty(&self) -> bool {
+ self.len() == 0
+ }
+
fn place(&mut self, rgb8: Rgb8) -> Option<(u32, u32)> {
let color = C::from(rgb8);