pub struct LocalFnHandler<F, T>{ /* private fields */ }Expand description
A wrapper that implements LocalHandler for FnMut closures.
Implementations§
Source§impl<F, T> LocalFnHandler<F, T>
impl<F, T> LocalFnHandler<F, T>
Trait Implementations§
Source§impl<F, T> LocalHandler for LocalFnHandler<F, T>
impl<F, T> LocalHandler for LocalFnHandler<F, T>
Source§fn handle(
&mut self,
matches: &ArgMatches,
ctx: &CommandContext,
) -> HandlerResult<T>
fn handle( &mut self, matches: &ArgMatches, ctx: &CommandContext, ) -> HandlerResult<T>
Execute the handler with the given matches and context.
Auto Trait Implementations§
impl<F, T> Freeze for LocalFnHandler<F, T>where
F: Freeze,
impl<F, T> RefUnwindSafe for LocalFnHandler<F, T>where
F: RefUnwindSafe,
impl<F, T> Send for LocalFnHandler<F, T>where
F: Send,
impl<F, T> Sync for LocalFnHandler<F, T>where
F: Sync,
impl<F, T> Unpin for LocalFnHandler<F, T>where
F: Unpin,
impl<F, T> UnwindSafe for LocalFnHandler<F, T>where
F: UnwindSafe,
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