pub struct InputField {
pub label: &'static str,
pub buf: Vec<u8>,
pub cursor: usize,
pub choices: Option<Vec<String>>,
pub choice_idx: usize,
pub is_toggle: bool,
pub toggle_val: bool,
}Expand description
One field in an InputDialog.
Fields§
§label: &'static str§buf: Vec<u8>§cursor: usize§choices: Option<Vec<String>>If Some, field cycles through these choices instead of free text.
choice_idx: usize§is_toggle: boolIf true, field is a boolean toggle.
toggle_val: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputField
impl RefUnwindSafe for InputField
impl Send for InputField
impl Sync for InputField
impl Unpin for InputField
impl UnsafeUnpin for InputField
impl UnwindSafe for InputField
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> 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