pub struct InputModalState { /* private fields */ }Implementations§
Source§impl InputModalState
impl InputModalState
pub fn new(value: &str, row: usize, visible: bool) -> Self
pub fn set_input(&mut self, value: &str)
pub fn set_label(&mut self, label: &str)
pub fn set_row(&mut self, row: usize)
pub fn set_offset_x(&mut self, x: usize)
pub fn set_callback(&mut self, callback: &Callback)
pub fn run_callback(&mut self) -> Option<(PathBuf, PathBuf)>
pub fn toggle_visibility(&mut self)
pub fn is_editing(&self) -> bool
pub fn insert_char(&mut self, char: char)
pub fn delete_char(&mut self)
Trait Implementations§
Source§impl Clone for InputModalState
impl Clone for InputModalState
Source§fn clone(&self) -> InputModalState
fn clone(&self) -> InputModalState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputModalState
impl Debug for InputModalState
Source§impl Default for InputModalState
impl Default for InputModalState
Source§fn default() -> InputModalState
fn default() -> InputModalState
Returns the “default value” for a type. Read more
Source§impl PartialEq for InputModalState
impl PartialEq for InputModalState
impl StructuralPartialEq for InputModalState
Auto Trait Implementations§
impl Freeze for InputModalState
impl RefUnwindSafe for InputModalState
impl Send for InputModalState
impl Sync for InputModalState
impl Unpin for InputModalState
impl UnsafeUnpin for InputModalState
impl UnwindSafe for InputModalState
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