pub struct FoldingState {
pub regions: Vec<FoldRegion>,
pub collapsed_line_count: usize,
pub visible_logical_lines: usize,
pub total_visual_lines: usize,
}Expand description
Folding state
Fields§
§regions: Vec<FoldRegion>All folding regions
collapsed_line_count: usizeCount of collapsed lines
visible_logical_lines: usizeCount of visible logical lines
total_visual_lines: usizeTotal visual line count (considering folding)
Trait Implementations§
Source§impl Clone for FoldingState
impl Clone for FoldingState
Source§fn clone(&self) -> FoldingState
fn clone(&self) -> FoldingState
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 FoldingState
impl RefUnwindSafe for FoldingState
impl Send for FoldingState
impl Sync for FoldingState
impl Unpin for FoldingState
impl UnwindSafe for FoldingState
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