Struct nvim_gtk::ui_model::model_layout::ModelLayout [−][src]
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]
lines: &[Vec<(Rc<Highlight>, Vec<String>)>],
max_columns: usize
) -> usize
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,