pub struct TabActions<K: Route> {
pub tabs: TabSet<K>,
/* private fields */
}Expand description
Commands shared by native and application-drawn tab chrome.
Fields§
§tabs: TabSet<K>Implementations§
Source§impl<K: Route> TabActions<K>
impl<K: Route> TabActions<K>
pub fn new_tab(&self)
pub fn close(&self, key: K)
Sourcepub fn drag(&self, key: &K) -> Offer
pub fn drag(&self, key: &K) -> Offer
Local drag data, scoped to this collection so unrelated tab hosts cannot collide.
Sourcepub fn drop_before(&self, key: K) -> Target
pub fn drop_before(&self, key: K) -> Target
A drop target that moves a tab before this key, preserving document identity.
Trait Implementations§
Auto Trait Implementations§
impl<K> !RefUnwindSafe for TabActions<K>
impl<K> !Send for TabActions<K>
impl<K> !Sync for TabActions<K>
impl<K> !UnwindSafe for TabActions<K>
impl<K> Freeze for TabActions<K>
impl<K> Unpin for TabActions<K>
impl<K> UnsafeUnpin for TabActions<K>
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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