1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use parking_lot::RwLock; use super::string_range::StringRange; use crate::tree::CommandNode; use std::sync::Arc; #[derive(Debug)] pub struct ParsedCommandNode<S> { pub node: Arc<RwLock<CommandNode<S>>>, pub range: StringRange, } impl<S> Clone for ParsedCommandNode<S> { fn clone(&self) -> Self { Self { node: self.node.clone(), range: self.range, } } }