pub struct WorkspaceState {
pub view: View,
pub selected_index: usize,
pub status: Option<String>,
}Fields§
§view: View§selected_index: usize§status: Option<String>Implementations§
Source§impl WorkspaceState
impl WorkspaceState
pub fn select_next(&mut self, len: usize)
pub fn select_previous(&mut self)
pub fn select_top(&mut self)
pub fn select_bottom(&mut self, len: usize)
pub fn set_view(&mut self, view: View)
pub fn set_status(&mut self, status: impl Into<String>)
pub fn clear_status(&mut self)
Trait Implementations§
Source§impl Clone for WorkspaceState
impl Clone for WorkspaceState
Source§fn clone(&self) -> WorkspaceState
fn clone(&self) -> WorkspaceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceState
impl Debug for WorkspaceState
Source§impl Default for WorkspaceState
impl Default for WorkspaceState
Source§impl PartialEq for WorkspaceState
impl PartialEq for WorkspaceState
Source§fn eq(&self, other: &WorkspaceState) -> bool
fn eq(&self, other: &WorkspaceState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WorkspaceState
impl StructuralPartialEq for WorkspaceState
Auto Trait Implementations§
impl Freeze for WorkspaceState
impl RefUnwindSafe for WorkspaceState
impl Send for WorkspaceState
impl Sync for WorkspaceState
impl Unpin for WorkspaceState
impl UnsafeUnpin for WorkspaceState
impl UnwindSafe for WorkspaceState
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