pub struct Grid {
model: UiModel,
}Fields
model: UiModelImplementations
sourceimpl Grid
impl Grid
pub fn new() -> Self
pub fn get_cursor(&self) -> (usize, usize)
pub fn cur_point(&self) -> ModelRect
pub fn resize(&mut self, columns: u64, rows: u64)
pub fn cursor_goto(&mut self, row: usize, col: usize) -> ModelRectVec
pub fn clear(&mut self, default_hl: &Rc<Highlight>)
pub fn line(
&mut self,
row: usize,
col_start: usize,
cells: Vec<Vec<Value>>,
highlights: &HighlightMap
) -> ModelRect
pub fn scroll(
&mut self,
top: u64,
bot: u64,
left: u64,
right: u64,
rows: i64,
_: i64,
default_hl: &Rc<Highlight>
) -> ModelRect
Auto Trait Implementations
impl RefUnwindSafe for Grid
impl !Send for Grid
impl !Sync for Grid
impl Unpin for Grid
impl UnwindSafe for Grid
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more