pub struct TabSlot {
pub id: TabId,
pub panes: PaneTree,
pub label: Option<String>,
}Expand description
One tab’s stashed state. The active tab’s panes is a
default-empty placeholder while that tab is live (its real
panes live on editor.pane_tree). Inactive tabs hold the
full pane tree here.
Fields§
§id: TabIdThis tab’s stable id, minted by TabId::next in Self::new.
TabSlot::default() leaves it at TabId(0), the “no tab” value.
panes: PaneTreeStashed pane tree. Read AS-IS for inactive tabs. For
the active tab this is a default placeholder; the live
tree is on editor.pane_tree.
label: Option<String>Optional custom label. None ⇒ render derives the
label from the active pane’s buffer name (basename of
the path, or [scratch]).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TabSlot
impl RefUnwindSafe for TabSlot
impl Send for TabSlot
impl Sync for TabSlot
impl Unpin for TabSlot
impl UnsafeUnpin for TabSlot
impl UnwindSafe for TabSlot
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