pub struct Pane { /* private fields */ }Implementations§
Source§impl Pane
impl Pane
Sourcepub fn new(layout: Vec<StyledGraphemes>, offset: usize) -> Self
pub fn new(layout: Vec<StyledGraphemes>, offset: usize) -> Self
Constructs a new Pane with the specified layout, offset, and optional fixed height.
layout: A vector ofStyledGraphemesrepresenting the content of the pane.offset: The initial offset from the top of the pane.
pub fn visible_row_count(&self) -> usize
pub fn extract(&self, viewport_height: usize) -> Vec<StyledGraphemes>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pane
impl RefUnwindSafe for Pane
impl Send for Pane
impl Sync for Pane
impl Unpin for Pane
impl UnwindSafe for Pane
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