2023-01-02 18:49:32 +01:00
|
|
|
|
2023-11-24 21:26:17 +01:00
|
|
|
pub mod list;
|
|
|
|
//pub mod product;
|
2024-01-04 15:39:39 +01:00
|
|
|
//pub mod sum;
|
2023-11-24 21:26:17 +01:00
|
|
|
|
|
|
|
pub mod char;
|
2024-01-06 17:04:15 +01:00
|
|
|
pub mod integer;
|
2024-01-04 15:39:39 +01:00
|
|
|
//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-02-18 04:15:47 +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
|
|
|
}
|
2023-02-18 04:15:47 +01:00
|
|
|
|
2024-01-06 17:04:15 +01:00
|
|
|
|