blob: cf08960187f3296ae0ab5add19719bd4525b6898 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use crate::image::atlas::Allocator;
#[derive(Debug)]
pub enum Layer {
Empty,
Busy(Allocator),
Full,
}
impl Layer {
pub fn is_empty(&self) -> bool {
matches!(self, Layer::Empty)
}
}
|