Enum cranelift_codegen::settings::detail::Detail [−][src]
The different kind of settings along with descriptor bits that depend on the kind.
Variants
BoolA boolean setting only uses one bit, numbered from LSB.
Fields of Bool
bit: u8 | 0-7. |
NumA numerical setting uses the whole byte.
EnumAn 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. |
PresetA preset is not an individual setting, it is a collection of settings applied at once.
The Descriptor::offset field refers to the PRESETS table.
Methods
impl Detail[src]
impl Detailpub fn is_preset(&self) -> bool[src]
pub fn is_preset(&self) -> boolCheck 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
impl Clone for Detail[src]
impl Clone for Detailfn clone(&self) -> Detail[src]
fn clone(&self) -> DetailReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Detail[src]
impl Copy for Detail