azalea_brigadier/context/
suggestion_context.rs

1
2
3
4
5
6
7
8
9
10
11
use std::sync::Arc;

use parking_lot::RwLock;

use crate::tree::CommandNode;

#[derive(Debug)]
pub struct SuggestionContext<S> {
    pub parent: Arc<RwLock<CommandNode<S>>>,
    pub start_pos: usize,
}