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;
|
|
|
|
|
|
|
|
pub mod char;
|
|
|
|
pub mod integer;
|
|
|
|
pub mod typeterm;
|
|
|
|
|
|
|
|
|
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-27 04:18:46 +01:00
|
|
|
reprTree::ReprTree,
|
|
|
|
editTree::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
|
|
|
|