concoct/view/
empty.rs

1use crate::{Tree, View};
2use std::any::Any;
3
4/// Empty view.
5pub struct Empty;
6
7impl View for Empty {
8    fn into_tree(self) -> impl Tree {
9        self
10    }
11}
12
13impl Tree for Empty {
14    unsafe fn build(&mut self) {}
15
16    unsafe fn rebuild(&mut self, _last: &mut dyn Any, _is_changed: bool) {}
17
18    unsafe fn remove(&mut self) {}
19}