pub struct PaneFocusContext {
pub active: Option<PaneId>,
pub maximized: Option<PaneId>,
}Expand description
Host-owned focus context consumed by resolve. This is plain input data,
not competing persistent state: hosts store the active/maximized pane
wherever they like (e.g. WorkspaceSnapshot::active_pane_id) and pass a
snapshot here.
Fields§
§active: Option<PaneId>The currently focused leaf, if any.
maximized: Option<PaneId>The currently maximized leaf, if any.
Implementations§
Trait Implementations§
Source§impl Clone for PaneFocusContext
impl Clone for PaneFocusContext
Source§fn clone(&self) -> PaneFocusContext
fn clone(&self) -> PaneFocusContext
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 moreimpl Copy for PaneFocusContext
Source§impl Debug for PaneFocusContext
impl Debug for PaneFocusContext
Source§impl Default for PaneFocusContext
impl Default for PaneFocusContext
Source§fn default() -> PaneFocusContext
fn default() -> PaneFocusContext
Returns the “default value” for a type. Read more
impl Eq for PaneFocusContext
Source§impl PartialEq for PaneFocusContext
impl PartialEq for PaneFocusContext
Source§fn eq(&self, other: &PaneFocusContext) -> bool
fn eq(&self, other: &PaneFocusContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaneFocusContext
Auto Trait Implementations§
impl Freeze for PaneFocusContext
impl RefUnwindSafe for PaneFocusContext
impl Send for PaneFocusContext
impl Sync for PaneFocusContext
impl Unpin for PaneFocusContext
impl UnsafeUnpin for PaneFocusContext
impl UnwindSafe for PaneFocusContext
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