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

27 lines
398 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;
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::{
type_system::ReprTree,
2023-02-24 19:26:46 +01:00
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
}