pub struct LineLayout {
pub visual_lines: Vec<String>,
pub visual_height: usize,
pub logical_to_visual: Vec<usize>,
}Expand description
行佈局資訊(從 wedi-core::view 重新匯出)
Fields§
§visual_lines: Vec<String>視覺行(已處理 Tab 並依螢幕寬度換行)
visual_height: usize視覺行高度(visual_lines.len())
logical_to_visual: Vec<usize>logical_col -> visual_col(整行累計視覺座標)
Implementations§
Source§impl LineLayout
impl LineLayout
pub fn new( buffer: &RopeBuffer, row: usize, available_width: usize, wrap: bool, ) -> Option<LineLayout>
Trait Implementations§
Source§impl Clone for LineLayout
impl Clone for LineLayout
Source§fn clone(&self) -> LineLayout
fn clone(&self) -> LineLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LineLayout
impl RefUnwindSafe for LineLayout
impl Send for LineLayout
impl Sync for LineLayout
impl Unpin for LineLayout
impl UnwindSafe for LineLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more