pub struct LeverSpec {
pub env: &'static str,
pub path: &'static str,
pub ty: Ty,
pub default: &'static str,
pub flag: Option<&'static str>,
pub class: Class,
pub reader: &'static str,
pub doc: &'static str,
}Fields§
§env: &'static str§path: &'static str2026-09-26: group.name, ending in the variable’s suffix in lower case.
ty: Ty§default: &'static str2026-09-26: The value in force when the variable is unset: on/off for a switch (of
the effect the name describes), a number, unset, built-in, or target-declared
(the [defaults] table of kernels/<hw>/HARDWARE.toml).
flag: Option<&'static str>2026-09-26: The met serve flag that sets the same thing.
class: Class§reader: &'static str2026-09-26: The repository file that reads it; levers_tests checks that it names it.
doc: &'static strTrait Implementations§
impl Copy for LeverSpec
impl Eq for LeverSpec
impl StructuralPartialEq for LeverSpec
Auto Trait Implementations§
impl Freeze for LeverSpec
impl RefUnwindSafe for LeverSpec
impl Send for LeverSpec
impl Sync for LeverSpec
impl Unpin for LeverSpec
impl UnwindSafe for LeverSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.