pub enum Container {
Window(WindowContainer),
Parent(ParentContainer),
}Expand description
A node in the workspace container tree.
Match on this enum to distinguish between leaf window nodes (Container::Window)
and parent split nodes (Container::Parent). Shared operations such as Container::id,
Container::parent, and Container::is_floating are available directly on the enum.
Variants§
Window(WindowContainer)
A leaf node holding a single window.
Parent(ParentContainer)
A split node holding child containers.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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