1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use crate::NativeContainerExt;

pub type NativeWidget = ();
pub type NativeContainerWidget = ();
pub type Element = ();

const PANIC_MSG:&str ="Can't construct a tree with default features. Consider enabling other features. eg. web, desktop";

impl NativeContainerExt for NativeContainerWidget {
    fn append(&mut self, _widget: &NativeWidget) {
        panic!("{}", PANIC_MSG);
    }
    fn move_to_index(&mut self, _widget: &NativeWidget, _index: usize) {
        panic!("{}", PANIC_MSG);
    }
}