pub struct WorkspaceState {
pub projects: Vec<Project>,
}Fields§
§projects: Vec<Project>Implementations§
Source§impl WorkspaceState
impl WorkspaceState
pub fn empty() -> Self
pub fn worktree(&self, pi: usize, wi: usize) -> Option<&WorktreeInfo>
pub fn worktree_mut( &mut self, pi: usize, wi: usize, ) -> Option<&mut WorktreeInfo>
pub fn session(&self, pi: usize, wi: usize, si: usize) -> Option<&SessionInfo>
pub fn session_mut( &mut self, pi: usize, wi: usize, si: usize, ) -> Option<&mut SessionInfo>
Sourcepub fn get_selection(&self, flat_idx: usize, flat: &[FlatEntry]) -> Selection
pub fn get_selection(&self, flat_idx: usize, flat: &[FlatEntry]) -> Selection
Resolve flat index to Selection using a pre-computed flat slice.
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
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