Enum cranelift_reader::Feature[][src]

pub enum Feature<'a> {
    With(&'a str),
    Without(&'a str),
}
Expand description

A cranelift feature in a test file preamble.

This represents the expectation of the test case. Before running any of the functions of the test file, the feature set should be compared with the feature set used to compile Cranelift. If there is any differences, then the test file should be skipped.

Variants

With(&'a str)

Tuple Fields

0: &'a str

feature "..." lines

Without(&'a str)

Tuple Fields

0: &'a str

feature ! "..." lines.

Trait Implementations

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

Compare self to key and return true if they are equal.

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.