Struct ext_php_rs::args::ArgParser[][src]

pub struct ArgParser<'a, 'b> { /* fields omitted */ }
Expand description

Parses the arguments of a function.

Implementations

Builds a new function argument parser.

Adds a new argument to the parser.

Parameters
  • arg - The argument to add to the parser.

Sets the next arguments to be added as not required.

Uses the argument parser to parse the arguments contained in the given ExecuteData object. Returns successfully if the arguments were parsed.

This function can only be safely called from within an exported PHP function.

Parameters
  • execute_data - The execution data from the function.
Errors

Returns an Error type if there were too many or too little arguments passed to the function. The user has already been notified so you should break execution after seeing an error type.

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.