pub enum Detail {
Bool {
bit: u8,
},
Num,
Enum {
last: u8,
enumerators: u16,
},
Preset,
}The different kind of settings along with descriptor bits that depend on the kind.
A boolean setting only uses one bit, numbered from LSB.
Fields of Bool
A numerical setting uses the whole byte.
An Enum setting uses a range of enumerators.
Fields of Enum
Numerical value of last enumerator, allowing for 1-256 enumerators.
First enumerator in the ENUMERATORS table.
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.
Check if a detail is a Detail::Preset. Useful because the Descriptor
offset field has a different meaning when the detail is a preset.
Performs copy-assignment from source. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
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