pub struct Tabs<'a> { /* private fields */ }Implementations§
Source§impl<'a> Tabs<'a>
impl<'a> Tabs<'a>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn active_note(&self) -> Option<&SelectedNote>
pub fn active_note_mut(&mut self) -> Option<&mut SelectedNote>
pub fn active_editor(&self) -> Option<&NoteEditorState<'a>>
pub fn active_editor_mut(&mut self) -> Option<&mut NoteEditorState<'a>>
Sourcepub fn set_theme(&mut self, theme: &Theme)
pub fn set_theme(&mut self, theme: &Theme)
Applies a theme to every open tab’s editor so switching tabs never reveals a stale palette.
pub fn open_or_focus(&mut self, path: &Path) -> bool
pub fn open(&mut self, tab: Tab<'a>)
pub fn next(&mut self)
pub fn prev(&mut self)
pub fn close_active(&mut self)
pub fn rename(&mut self, old: &Path, new: &Path, name: &str)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Tabs<'a>
impl<'a> RefUnwindSafe for Tabs<'a>
impl<'a> Send for Tabs<'a>
impl<'a> Sync for Tabs<'a>
impl<'a> Unpin for Tabs<'a>
impl<'a> UnsafeUnpin for Tabs<'a>
impl<'a> UnwindSafe for Tabs<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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