#[non_exhaustive]pub enum TabAction<I: ApplicationInfo> {
Close(TabTarget, CloseFlags),
Extract(FocusChange, MoveDir1D),
Focus(FocusChange),
Move(FocusChange),
Open(OpenTarget<I::WindowId>, FocusChange),
}
Expand description
Tab actions
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Close(TabTarget, CloseFlags)
Close the TabTarget tabs with CloseFlags options.
Extract(FocusChange, MoveDir1D)
Extract the currently focused window from the currently focused tab, and place it in a new tab.
If there is only one window in the current tab, then this does nothing.
The new tab will be placed on MoveDir1D side of the tab targeted by FocusChange. If FocusChange doesn’t resolve to a valid tab, then the new tab is placed after the currently focused tab.
Focus(FocusChange)
Change the current focus to the tab targeted by FocusChange.
Move(FocusChange)
Move the currently focused tab to the position targeted by FocusChange.
Open(OpenTarget<I::WindowId>, FocusChange)
Open a new tab after the tab targeted by FocusChange that displays the requested content.
Trait Implementations§
source§impl<I: PartialEq + ApplicationInfo> PartialEq for TabAction<I>
impl<I: PartialEq + ApplicationInfo> PartialEq for TabAction<I>
impl<I: Eq + ApplicationInfo> Eq for TabAction<I>
impl<I: ApplicationInfo> StructuralPartialEq for TabAction<I>
Auto Trait Implementations§
impl<I> Freeze for TabAction<I>
impl<I> RefUnwindSafe for TabAction<I>
impl<I> Send for TabAction<I>
impl<I> Sync for TabAction<I>
impl<I> Unpin for TabAction<I>
impl<I> UnwindSafe for TabAction<I>
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.