pub struct Workspace {
pub number: Option<u32>,
pub name: Option<String>,
pub rectangle: Rectangle,
/* private fields */
}Expand description
Represents one workspace on an output.
Each workspace hosts a tree of crate::container::Containers. Use [Workspace::trees]
to get the top-level containers, and Workspace::output to find the display this
workspace is hosted on.
Fields§
§number: Option<u32>The workspace number (if set).
name: Option<String>The workspace name (if set).
rectangle: RectangleThe current area of the workspace.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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