Trait valence_command::parsers::CommandArg
source · pub trait CommandArg: Sized {
// Required methods
fn parse_arg(
input: &mut ParseInput<'_>,
) -> Result<Self, CommandArgParseError>;
fn display() -> Parser;
// Provided method
fn arg_from_str(string: &str) -> Result<Self, CommandArgParseError> { ... }
}
Required Methods§
fn parse_arg(input: &mut ParseInput<'_>) -> Result<Self, CommandArgParseError>
Provided Methods§
fn arg_from_str(string: &str) -> Result<Self, CommandArgParseError>
Object Safety§
This trait is not object safe.