#[non_exhaustive]pub struct Tab {
pub layout: LayoutTree,
pub focused_window: WindowId,
}Expand description
Per-tab layout + focus state.
Each tab owns one LayoutTree (the window arrangement within that tab)
and records which window in that tree currently has focus. Windows and
slots are shared across tabs — a WindowId refers into the host’s window
list regardless of which tab it lives in.
#[non_exhaustive] — additional fields may be added in minor releases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.layout: LayoutTreeSpatial layout tree for this tab. Leaves reference WindowIds.
focused_window: WindowIdThe window that has focus within this tab.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tab
impl RefUnwindSafe for Tab
impl Send for Tab
impl Sync for Tab
impl Unpin for Tab
impl UnsafeUnpin for Tab
impl UnwindSafe for Tab
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