From 8d71fbf813391783531a9f7c70e75e105fabaf03 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 18 Apr 2022 18:14:25 +0000 Subject: change a BTreeMap to a HashMap --- azalea-brigadier/src/context/parsed_command_node.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 azalea-brigadier/src/context/parsed_command_node.rs (limited to 'azalea-brigadier/src/context/parsed_command_node.rs') diff --git a/azalea-brigadier/src/context/parsed_command_node.rs b/azalea-brigadier/src/context/parsed_command_node.rs new file mode 100644 index 00000000..ed49928d --- /dev/null +++ b/azalea-brigadier/src/context/parsed_command_node.rs @@ -0,0 +1,18 @@ +use super::string_range::StringRange; +use crate::tree::CommandNode; +use std::{cell::RefCell, rc::Rc}; + +#[derive(Debug)] +pub struct ParsedCommandNode { + pub node: Rc>>, + pub range: StringRange, +} + +impl Clone for ParsedCommandNode { + fn clone(&self) -> Self { + Self { + node: self.node.clone(), + range: self.range.clone(), + } + } +} -- cgit v1.2.3