Struct cranelift_codegen_meta::cdsl::settings::Preset
source · pub(crate) struct Preset {
pub name: &'static str,
pub description: &'static str,
values: Vec<BoolSettingIndex>,
}
Fields§
§name: &'static str
§description: &'static str
§values: Vec<BoolSettingIndex>
Implementations§
source§impl Preset
impl Preset
pub fn layout(&self, group: &SettingGroup) -> Vec<(u8, u8)>
pub fn setting_names<'a>( &'a self, group: &'a SettingGroup ) -> impl Iterator<Item = &'static str> + 'a
Trait Implementations§
source§impl PartialEq<Preset> for Preset
impl PartialEq<Preset> for Preset
impl Eq for Preset
impl StructuralEq for Preset
impl StructuralPartialEq for Preset
Auto Trait Implementations§
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnwindSafe for Preset
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more