Struct quartz_commands::ArgumentTraverser[][src]

pub struct ArgumentTraverser<'cmd> { /* fields omitted */ }
Expand description

Iterates over the individual arguments in a command accounting for quoted arguments.

Implementations

Creates a traverser over the given command, stripping off the initial ‘/’ if it exists.

Returns the remaining portion of the string being traversed, including the argument which was last read.

Returns the remaining portion of the string being traversed from the current anchor position to the end of the string.

Returns whether or not this traverser has more arguments. If this function returns true, then next will not return None.

Returns the next argument in the string being traversed, or None if no arguments remain. This function will not strip strings of any enclosing quotes, and will not resolve escape sequences.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.