Struct nvim_gtk::ui_model::line::Line [−][src]
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]
&mut self,
start_cell: usize,
end_cell: usize,
new_item: &Item
)
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
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]
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>,