Enum cranelift_reader::RunCommand[][src]

pub enum RunCommand {
    Print(Invocation),
    Run(InvocationComparisonVec<DataValue>),
}
Expand description

A run command appearing in a test file.

For parsing, see Parser::parse_run_command

Variants

Print(Invocation)

Tuple Fields

Invoke a function and print its result.

Run(InvocationComparisonVec<DataValue>)

Tuple Fields

Invoke a function and compare its result to a value sequence.

Implementations

Run the RunCommand:

  • for RunCommand::Print, print the returned values from invoking the function.
  • for RunCommand::Run, compare the returned values from the invoked function and return an Err with a descriptive string if the comparison fails.

Accepts a function used for invoking the actual execution of the command. This function, invoked_fn, is passed the function name and function arguments of the Invocation.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Converts the given value to a String. Read more

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.