pub struct FoldSet { /* private fields */ }Expand description
The folded regions of one view, possibly nested.
Implementations§
Source§impl FoldSet
impl FoldSet
pub fn is_empty(&self) -> bool
pub fn is_folded(&self, header: usize) -> bool
The hidden line range (inclusive) holding line.
Hidden lines in total.
Hidden lines before line.
Sourcepub fn visible_line(&self, index: usize, line_count: usize) -> usize
pub fn visible_line(&self, index: usize, line_count: usize) -> usize
The line that is the index-th visible line (0-based), or the last
visible one if there are fewer.
Trait Implementations§
impl Eq for FoldSet
impl StructuralPartialEq for FoldSet
Auto Trait Implementations§
impl Freeze for FoldSet
impl RefUnwindSafe for FoldSet
impl Send for FoldSet
impl Sync for FoldSet
impl Unpin for FoldSet
impl UnsafeUnpin for FoldSet
impl UnwindSafe for FoldSet
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