lib-nested/lib-nested-core/src/editors/mod.rs

27 lines
405 B
Rust
Raw Normal View History

2023-01-02 18:49:32 +01:00
2023-11-24 21:26:17 +01:00
pub mod list;
//pub mod product;
//pub mod sum;
2023-11-24 21:26:17 +01:00
pub mod char;
//pub mod integer;
//pub mod typeterm;
2023-11-24 21:26:17 +01:00
2023-01-02 18:49:32 +01:00
pub trait Commander {
type Cmd;
fn send_cmd(&mut self, cmd: &Self::Cmd);
}
use std::sync::{Arc, RwLock};
use crate::{
2023-11-28 20:52:25 +01:00
repr_tree::ReprTree,
edit_tree::nav::TreeNavResult
2023-01-02 18:49:32 +01:00
};
2023-01-02 18:49:32 +01:00
pub trait ObjCommander {
2023-02-24 19:26:46 +01:00
fn send_cmd_obj(&mut self, cmd_obj: Arc<RwLock<ReprTree>>) -> TreeNavResult;
2023-01-02 18:49:32 +01:00
}