pub struct Knob {
pub name: String,
pub value: f64,
pub min: f64,
pub max: f64,
pub step: f64,
pub choices: Vec<String>,
pub shared: bool,
}Expand description
One build option of a component.
Fields§
§name: StringLabel.
value: f64Current value (for a choice: the index into choices).
min: f64Smallest value.
max: f64Largest value.
step: f64Step of one key press.
choices: Vec<String>Names of the values of a choice knob (empty for a numeric knob).
One setting for every module that has a shared knob of this name (DSig’s scheme and hash apply to its signer and its verifier alike): the TUI shows it once and sets it on all of them.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Knob
Auto Trait Implementations§
impl Freeze for Knob
impl RefUnwindSafe for Knob
impl Send for Knob
impl Sync for Knob
impl Unpin for Knob
impl UnsafeUnpin for Knob
impl UnwindSafe for Knob
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more