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: boolImplementations
sourceimpl Line
impl Line
pub fn new(columns: usize) -> Self
pub fn swap_with(&mut self, target: &mut Self, left: usize, right: usize)
pub fn clear(&mut self, left: usize, right: usize, default_hl: &Rc<Highlight>)
pub fn clear_glyphs(&mut self)
fn set_cell_to_empty(&mut self, cell_idx: usize) -> bool
fn set_cell_to_item(&mut self, new_item: &PangoItemPosition<'_>) -> bool
pub fn merge(&mut self, old_items: &StyledLine, pango_items: &[Item])
fn initialize_cell_item(
&mut self,
start_cell: usize,
end_cell: usize,
new_item: &Item
)
pub fn get_item(&self, cell_idx: usize) -> Option<&Item>
pub fn cell_to_item(&self, cell_idx: usize) -> i32
pub fn item_len_from_idx(&self, start_idx: usize) -> usize
pub fn is_binded_to_item(&self, cell_idx: usize) -> bool
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
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