summaryrefslogtreecommitdiffstats
path: root/src/frontier.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontier.rs')
-rw-r--r--src/frontier.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frontier.rs b/src/frontier.rs
index 7143cb7..c7b7ca5 100644
--- a/src/frontier.rs
+++ b/src/frontier.rs
@@ -23,6 +23,9 @@ pub trait Frontier {
/// The number of pixels currently on the frontier.
fn len(&self) -> usize;
+ /// Whether the frontier is empty.
+ fn is_empty(&self) -> bool;
+
/// Place the given color on the frontier, and return its position.
fn place(&mut self, rgb8: Rgb8) -> Option<(u32, u32)>;
}