pub struct Sidebar {
pub open: bool,
pub list_scroll: usize,
pub detail_scroll: usize,
pub first_tool_seen: bool,
pub list_height: u16,
}Expand description
Sidebar state tracked in App.
Fields§
§open: boolWhether the sidebar pane is visible.
list_scroll: usizeScroll offset for the tool list pane (split mode, 0 = top).
detail_scroll: usizeScroll offset for the detail/stream pane (0 = top).
first_tool_seen: boolWhether the first tool has been seen (for auto-open logic).
list_height: u16Cached list pane height from last render (for scroll bounds).
Implementations§
Source§impl Sidebar
impl Sidebar
Sourcepub fn reset_detail_scroll(&mut self)
pub fn reset_detail_scroll(&mut self)
Reset detail scroll (call when selection changes).
Sourcepub fn scroll_list_up(&mut self, n: usize)
pub fn scroll_list_up(&mut self, n: usize)
Scroll the tool list up (toward earlier entries).
Sourcepub fn scroll_list_down(&mut self, n: usize)
pub fn scroll_list_down(&mut self, n: usize)
Scroll the tool list down (toward later entries).
Sourcepub fn scroll_detail_up(&mut self, n: usize)
pub fn scroll_detail_up(&mut self, n: usize)
Scroll the detail/stream pane up (toward earlier content).
Sourcepub fn scroll_detail_down(&mut self, n: usize)
pub fn scroll_detail_down(&mut self, n: usize)
Scroll the detail/stream pane down (toward later content).
Sourcepub fn ensure_selected_visible(&mut self, selected: usize)
pub fn ensure_selected_visible(&mut self, selected: usize)
Ensure the selected tool call index is visible in the list (split mode).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sidebar
impl RefUnwindSafe for Sidebar
impl Send for Sidebar
impl Sync for Sidebar
impl Unpin for Sidebar
impl UnsafeUnpin for Sidebar
impl UnwindSafe for Sidebar
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> 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