pub struct BrowserTab {
pub id: String,
pub label: String,
pub icon: Option<String>,
pub dirty: bool,
}Expand description
A single tab cell rendered by BrowserTabs.
Fields§
§id: StringStable identifier used to track selection and emit events.
label: StringDisplay label. Truncated with an ellipsis if it doesn’t fit.
icon: Option<String>Optional leading icon glyph. Pass any string; typically a single
glyph from a font like Lucide via crate::glyphs.
dirty: boolShow a small sky dot to signal unsaved changes.
Implementations§
Trait Implementations§
Source§impl Clone for BrowserTab
impl Clone for BrowserTab
Source§fn clone(&self) -> BrowserTab
fn clone(&self) -> BrowserTab
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BrowserTab
impl RefUnwindSafe for BrowserTab
impl Send for BrowserTab
impl Sync for BrowserTab
impl Unpin for BrowserTab
impl UnsafeUnpin for BrowserTab
impl UnwindSafe for BrowserTab
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