diff options
| author | mat <github@matdoes.dev> | 2022-04-18 18:14:25 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-18 18:14:25 +0000 |
| commit | 8d71fbf813391783531a9f7c70e75e105fabaf03 (patch) | |
| tree | dd1d70370d3068c4aecd8aaf25174278dfbc1b29 /azalea-brigadier/src/context/parsed_command_node.rs | |
| parent | b3864af9c4af83552e37fd71a46262967572f9e6 (diff) | |
| download | azalea-drasl-8d71fbf813391783531a9f7c70e75e105fabaf03.tar.xz | |
change a BTreeMap to a HashMap
Diffstat (limited to 'azalea-brigadier/src/context/parsed_command_node.rs')
| -rw-r--r-- | azalea-brigadier/src/context/parsed_command_node.rs | 18 |
1 files changed, 18 insertions, 0 deletions
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<S> { + pub node: Rc<RefCell<CommandNode<S>>>, + pub range: StringRange, +} + +impl<S> Clone for ParsedCommandNode<S> { + fn clone(&self) -> Self { + Self { + node: self.node.clone(), + range: self.range.clone(), + } + } +} |
