Skip to main content

ErasedSteelArgumentParser

Trait ErasedSteelArgumentParser 

Source
trait ErasedSteelArgumentParser:
    ErasedType
    + Debug
    + Send
    + Sync {
    // Required methods
    fn parse_erased(
        &self,
        reader: &mut StringReader<'_>,
        source: &dyn CommandArgumentSource,
    ) -> Result<SteelArgumentValue, CommandSyntaxError>;
    fn list_suggestions_erased(
        &self,
        context: &dyn SteelArgumentSuggestionContext,
        builder: &mut SuggestionsBuilder<'_>,
    );
    fn protocol_argument_erased(
        &self,
    ) -> (ProtocolArgumentType, Option<ProtocolSuggestionType>);
    fn equals_erased(&self, other: &dyn ErasedSteelArgumentParser) -> bool;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§