pub struct TabState {
pub active: bool,
pub is_being_dragged: bool,
pub closable: bool,
}Expand description
The state of a tab, used to inform the rendering of the tab.
Fields§
§active: boolIs the tab currently selected?
is_being_dragged: boolIs the tab currently being dragged?
closable: boolShould the tab have a close button?
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TabState
impl RefUnwindSafe for TabState
impl Send for TabState
impl Sync for TabState
impl Unpin for TabState
impl UnwindSafe for TabState
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