pub enum WorkspaceIdentifier<'a> {
Id(WorkspaceId),
Relative(i32),
RelativeMonitor(i32),
RelativeMonitorIncludingEmpty(i32),
RelativeOpen(i32),
Previous,
Empty,
Name(&'a str),
}Expand description
This enum is for identifying workspaces
Variants§
Id(WorkspaceId)
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§
Source§impl<'a> Clone for WorkspaceIdentifier<'a>
impl<'a> Clone for WorkspaceIdentifier<'a>
Source§fn clone(&self) -> WorkspaceIdentifier<'a>
fn clone(&self) -> WorkspaceIdentifier<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for WorkspaceIdentifier<'a>
Source§impl<'a> Debug for WorkspaceIdentifier<'a>
impl<'a> Debug for WorkspaceIdentifier<'a>
Source§impl Display for WorkspaceIdentifier<'_>
impl Display for WorkspaceIdentifier<'_>
impl<'a> Eq for WorkspaceIdentifier<'a>
Source§impl<'a> PartialEq for WorkspaceIdentifier<'a>
impl<'a> PartialEq for WorkspaceIdentifier<'a>
Source§fn eq(&self, other: &WorkspaceIdentifier<'a>) -> bool
fn eq(&self, other: &WorkspaceIdentifier<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.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> UnsafeUnpin 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