Struct nvim_gtk::ui_model::model_layout::ModelLayout[][src]

pub struct ModelLayout {
    pub model: UiModel,
    rows_filled: usize,
    cols_filled: usize,
    lines: Vec<Vec<(Rc<Highlight>, Vec<String>)>>,
}

Fields

model: UiModelrows_filled: usizecols_filled: usizelines: Vec<Vec<(Rc<Highlight>, Vec<String>)>>

Implementations

impl ModelLayout[src]

const ROWS_STEP: usize[src]

pub fn new(columns: u64) -> Self[src]

pub fn layout_append(&mut self, lines: Vec<Vec<(Rc<Highlight>, Vec<String>)>>)[src]

pub fn layout(&mut self, lines: Vec<Vec<(Rc<Highlight>, Vec<String>)>>)[src]

pub fn set_cursor(&mut self, col: usize)[src]

pub fn size(&self) -> (usize, usize)[src]

fn check_model_size(&mut self, rows: usize)[src]

pub fn insert_char(&mut self, ch: String, shift: bool, hl: Rc<Highlight>)[src]

fn insert_into_lines(&mut self, ch: String)[src]

fn layout_replace(&mut self, row_offset: usize, take_from: usize)[src]

Wrap all lines into model

returns actual width

fn count_lines(
    lines: &[Vec<(Rc<Highlight>, Vec<String>)>],
    max_columns: usize
) -> usize
[src]

Auto Trait Implementations

impl !RefUnwindSafe for ModelLayout

impl !Send for ModelLayout

impl !Sync for ModelLayout

impl Unpin for ModelLayout

impl UnwindSafe for ModelLayout

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.