Enum WorkspaceIdentifierWithSpecial
pub enum WorkspaceIdentifierWithSpecial<'a> {
Id(i32),
Relative(i32),
RelativeMonitor(i32),
RelativeMonitorIncludingEmpty(i32),
RelativeOpen(i32),
Previous,
Empty,
Name(&'a str),
Special(Option<&'a str>),
}
Expand description
This enum is for identifying workspaces that also includes the special workspace
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
Special(Option<&'a str>)
The special workspace
Trait Implementations§
§impl<'a> Clone for WorkspaceIdentifierWithSpecial<'a>
impl<'a> Clone for WorkspaceIdentifierWithSpecial<'a>
§fn clone(&self) -> WorkspaceIdentifierWithSpecial<'a>
fn clone(&self) -> WorkspaceIdentifierWithSpecial<'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 WorkspaceIdentifierWithSpecial<'a>
impl<'a> Debug for WorkspaceIdentifierWithSpecial<'a>
§impl<'a> Display for WorkspaceIdentifierWithSpecial<'a>
impl<'a> Display for WorkspaceIdentifierWithSpecial<'a>
§impl<'a> PartialEq for WorkspaceIdentifierWithSpecial<'a>
impl<'a> PartialEq for WorkspaceIdentifierWithSpecial<'a>
§fn eq(&self, other: &WorkspaceIdentifierWithSpecial<'a>) -> bool
fn eq(&self, other: &WorkspaceIdentifierWithSpecial<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'a> Copy for WorkspaceIdentifierWithSpecial<'a>
impl<'a> Eq for WorkspaceIdentifierWithSpecial<'a>
impl<'a> StructuralPartialEq for WorkspaceIdentifierWithSpecial<'a>
Auto Trait Implementations§
impl<'a> Freeze for WorkspaceIdentifierWithSpecial<'a>
impl<'a> RefUnwindSafe for WorkspaceIdentifierWithSpecial<'a>
impl<'a> Send for WorkspaceIdentifierWithSpecial<'a>
impl<'a> Sync for WorkspaceIdentifierWithSpecial<'a>
impl<'a> Unpin for WorkspaceIdentifierWithSpecial<'a>
impl<'a> UnwindSafe for WorkspaceIdentifierWithSpecial<'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