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.
A boolean setting only uses one bit, numbered from LSB.
A numerical setting uses the whole byte.
Fields
Numerical value of last enumerator, allowing for 1-256 enumerators.
First enumerator in the ENUMERATORS table.
An Enum setting uses a range of enumerators.
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
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
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.