#[repr(C)]pub struct TerminalScrollbar {
pub total: u64,
pub offset: u64,
pub len: u64,
}Expand description
Scrollbar state for the terminal viewport.
Represents the scrollable area dimensions needed to render a scrollbar.
Fields§
§total: u64Total size of the scrollable area in rows.
offset: u64Offset into the total area that the viewport is at.
len: u64Length of the visible area in rows.
Trait Implementations§
Source§impl Clone for TerminalScrollbar
impl Clone for TerminalScrollbar
Source§fn clone(&self) -> TerminalScrollbar
fn clone(&self) -> TerminalScrollbar
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TerminalScrollbar
Source§impl Debug for TerminalScrollbar
impl Debug for TerminalScrollbar
Source§impl Default for TerminalScrollbar
impl Default for TerminalScrollbar
Source§fn default() -> TerminalScrollbar
fn default() -> TerminalScrollbar
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TerminalScrollbar
impl RefUnwindSafe for TerminalScrollbar
impl Send for TerminalScrollbar
impl Sync for TerminalScrollbar
impl Unpin for TerminalScrollbar
impl UnsafeUnpin for TerminalScrollbar
impl UnwindSafe for TerminalScrollbar
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