pub enum ScrollViewport {
Top,
Bottom,
Delta(isize),
}Expand description
Scroll viewport behavior.
Variants§
Top
Scroll to the top of the scrollback.
Bottom
Scroll to the bottom (active area).
Delta(isize)
Scroll by a delta amount (up is negative).
Trait Implementations§
Source§impl Clone for ScrollViewport
impl Clone for ScrollViewport
Source§fn clone(&self) -> ScrollViewport
fn clone(&self) -> ScrollViewport
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 moreSource§impl Debug for ScrollViewport
impl Debug for ScrollViewport
Source§impl From<ScrollViewport> for GhosttyTerminalScrollViewport
impl From<ScrollViewport> for GhosttyTerminalScrollViewport
Source§fn from(value: ScrollViewport) -> Self
fn from(value: ScrollViewport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScrollViewport
impl PartialEq for ScrollViewport
impl Copy for ScrollViewport
impl Eq for ScrollViewport
impl StructuralPartialEq for ScrollViewport
Auto Trait Implementations§
impl Freeze for ScrollViewport
impl RefUnwindSafe for ScrollViewport
impl Send for ScrollViewport
impl Sync for ScrollViewport
impl Unpin for ScrollViewport
impl UnsafeUnpin for ScrollViewport
impl UnwindSafe for ScrollViewport
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