pub struct KeyboardNavState {
pub focused_index: usize,
pub rename_mode: bool,
pub rename_buffer: String,
}Expand description
Keyboard navigation state for the hierarchy panel.
Fields§
§focused_index: usize§rename_mode: bool§rename_buffer: StringImplementations§
pub fn move_up(&mut self, visible_count: usize)
pub fn move_down(&mut self, visible_count: usize)
pub fn begin_rename(&mut self, current_name: &str)
pub fn finish_rename(&mut self) -> Option<String>
pub fn cancel_rename(&mut self)
Trait Implementations§
Source§fn clone(&self) -> KeyboardNavState
fn clone(&self) -> KeyboardNavState
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§fn default() -> KeyboardNavState
fn default() -> KeyboardNavState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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