pub struct ContextChain<S> { /* private fields */ }
Implementations§
Source§impl<S> ContextChain<S>
impl<S> ContextChain<S>
pub fn new( modifiers: Vec<Rc<CommandContext<S>>>, executable: Rc<CommandContext<S>>, ) -> Self
pub fn try_flatten(root_context: Rc<CommandContext<S>>) -> Option<Self>
pub fn run_modifier( modifier: Rc<CommandContext<S>>, source: Arc<S>, result_consumer: &dyn ResultConsumer<S>, forked_mode: bool, ) -> Result<Vec<Arc<S>>, CommandSyntaxError>
pub fn run_executable( &self, executable: Rc<CommandContext<S>>, source: Arc<S>, result_consumer: &dyn ResultConsumer<S>, forked_mode: bool, ) -> Result<i32, CommandSyntaxError>
pub fn execute_all( &self, source: Arc<S>, result_consumer: &dyn ResultConsumer<S>, ) -> Result<i32, CommandSyntaxError>
pub fn stage(&self) -> Stage
pub fn top_context(&self) -> Rc<CommandContext<S>>
pub fn next_stage(&mut self) -> Option<Rc<ContextChain<S>>>
Auto Trait Implementations§
impl<S> Freeze for ContextChain<S>
impl<S> !RefUnwindSafe for ContextChain<S>
impl<S> !Send for ContextChain<S>
impl<S> !Sync for ContextChain<S>
impl<S> Unpin for ContextChain<S>
impl<S> !UnwindSafe for ContextChain<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more