Enum cranelift_codegen::settings::detail::Detail[][src]

pub enum Detail {
    Bool {
        bit: u8,
    },
    Num,
    Enum {
        last: u8,
        enumerators: u16,
    },
    Preset,
}
Expand description

The different kind of settings along with descriptor bits that depend on the kind.

Variants

Bool

A boolean setting only uses one bit, numbered from LSB.

Fields of Bool

bit: u8

0-7.

Num

A numerical setting uses the whole byte.

Enum

An Enum setting uses a range of enumerators.

Fields of Enum

last: u8

Numerical value of last enumerator, allowing for 1-256 enumerators.

enumerators: u16

First enumerator in the ENUMERATORS table.

Preset

A preset is not an individual setting, it is a collection of settings applied at once.

The Descriptor::offset field refers to the PRESETS table.

Implementations

Check if a detail is a Detail::Preset. Useful because the Descriptor offset field has a different meaning when the detail is a preset.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.