Enum WorkspaceIdentifier
pub enum WorkspaceIdentifier<'a> {
Id(i32),
Relative(i32),
RelativeMonitor(i32),
RelativeMonitorIncludingEmpty(i32),
RelativeOpen(i32),
Previous,
Empty,
Name(&'a str),
}
Expand description
This enum is for identifying workspaces
Variants§
Id(i32)
The workspace Id
Relative(i32)
The workspace relative to the current workspace
RelativeMonitor(i32)
The workspace on the monitor relative to the current workspace
RelativeMonitorIncludingEmpty(i32)
The workspace on the monitor relative to the current workspace, including empty workspaces
RelativeOpen(i32)
The open workspace relative to the current workspace
Previous
The previous Workspace
Empty
The first available empty workspace
Name(&'a str)
The name of the workspace
Trait Implementations§
§impl<'a> Clone for WorkspaceIdentifier<'a>
impl<'a> Clone for WorkspaceIdentifier<'a>
§fn clone(&self) -> WorkspaceIdentifier<'a>
fn clone(&self) -> WorkspaceIdentifier<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<'a> Debug for WorkspaceIdentifier<'a>
impl<'a> Debug for WorkspaceIdentifier<'a>
§impl Display for WorkspaceIdentifier<'_>
impl Display for WorkspaceIdentifier<'_>
§impl<'a> PartialEq for WorkspaceIdentifier<'a>
impl<'a> PartialEq for WorkspaceIdentifier<'a>
impl<'a> Copy for WorkspaceIdentifier<'a>
impl<'a> Eq for WorkspaceIdentifier<'a>
impl<'a> StructuralPartialEq for WorkspaceIdentifier<'a>
Auto Trait Implementations§
impl<'a> Freeze for WorkspaceIdentifier<'a>
impl<'a> RefUnwindSafe for WorkspaceIdentifier<'a>
impl<'a> Send for WorkspaceIdentifier<'a>
impl<'a> Sync for WorkspaceIdentifier<'a>
impl<'a> Unpin for WorkspaceIdentifier<'a>
impl<'a> UnwindSafe for WorkspaceIdentifier<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more