Skip to main content

CommandArgExtractor

Trait CommandArgExtractor 

Source
pub trait CommandArgExtractor<Context, Arg>: IsProviderFor<CommandArgExtractorComponent, Context, Arg>
where Context: HasCommandArgType,
{ // Required method fn extract_command_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> Context::CommandArg; }

Required Methods§

Source

fn extract_command_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> Context::CommandArg

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Context, Arg, __Components__, __Delegate__> CommandArgExtractor<Context, Arg> for UseDelegate<__Components__>
where Context: HasCommandArgType, __Components__: DelegateComponent<Arg, Delegate = __Delegate__>, __Delegate__: CommandArgExtractor<Context, Arg>,

Source§

fn extract_command_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> Context::CommandArg

Source§

impl<Context, Arg> CommandArgExtractor<Context, Arg> for UseContext

Source§

fn extract_command_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> Context::CommandArg

Implementors§

Source§

impl<Component, Context, Arg> CommandArgExtractor<Context, Arg> for Component

Source§

impl<Context, Arg> CommandArgExtractor<Context, Arg> for ExtractStringCommandArg
where Context: HasCommandArgType + CanExtractStringArg<Arg>, Context::CommandArg: From<String>,