Enum penrose::Selector [−][src]
pub enum Selector<'a, T> {
Any,
Focused,
Index(usize),
WinId(Xid),
Condition(&'a dyn Fn(&T) -> bool),
}
Expand description
Used with WindowManager helper functions to select an element from the known workspaces or clients.
Variants
Any
Any element in the target collection.
For functions returning a single elemt this is equivalent to Focused
, for functions
returning multiple elements this will return the entire collection.
Focused
The focused element of the target collection.
Index(usize)
Tuple Fields
0: usize
The element at this index.
WinId(Xid)
Tuple Fields
0: Xid
The element with/containing this client ID.
Condition(&'a dyn Fn(&T) -> bool)
The first element satisfying this condition.
Trait Implementations
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Selector<'a, T>
impl<'a, T> !UnwindSafe for Selector<'a, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more