Struct nvim_gtk::ui_model::line::Line[][src]

pub struct Line {
    pub line: Box<[Cell]>,
    pub item_line: Box<[Option<Item>]>,
    cell_to_item: Box<[i32]>,
    pub dirty_line: bool,
}

Fields

line: Box<[Cell]>item_line: Box<[Option<Item>]>cell_to_item: Box<[i32]>dirty_line: bool

Implementations

impl Line[src]

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

pub fn swap_with(&mut self, target: &mut Self, left: usize, right: usize)[src]

pub fn clear(&mut self, left: usize, right: usize, default_hl: &Rc<Highlight>)[src]

pub fn clear_glyphs(&mut self)[src]

fn set_cell_to_empty(&mut self, cell_idx: usize) -> bool[src]

fn set_cell_to_item(&mut self, new_item: &PangoItemPosition<'_>) -> bool[src]

pub fn merge(&mut self, old_items: &StyledLine, pango_items: &[Item])[src]

fn initialize_cell_item(
    &mut self,
    start_cell: usize,
    end_cell: usize,
    new_item: &Item
)
[src]

pub fn get_item(&self, cell_idx: usize) -> Option<&Item>[src]

pub fn cell_to_item(&self, cell_idx: usize) -> i32[src]

pub fn item_len_from_idx(&self, start_idx: usize) -> usize[src]

pub fn is_binded_to_item(&self, cell_idx: usize) -> bool[src]

Trait Implementations

impl Index<usize> for Line[src]

type Output = Cell

The returned type after indexing.

impl IndexMut<usize> for Line[src]

Auto Trait Implementations

impl !RefUnwindSafe for Line

impl !Send for Line

impl !Sync for Line

impl Unpin for Line

impl UnwindSafe for Line

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.