pub struct View {
pub lines: Vec<Vec<Segment>>,
pub cursor: Option<(usize, usize)>,
}Expand description
A rendered view: lines of segments, and where the terminal cursor goes
(a text caret), or None to hide it.
Fields§
§lines: Vec<Vec<Segment>>§cursor: Option<(usize, usize)>(row, column) within the view.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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