pub struct FoldSet { /* private fields */ }Expand description
The folded regions of one view, possibly nested, and its filter.
Implementations§
Source§impl FoldSet
impl FoldSet
Sourcepub fn has_filter(&self) -> bool
pub fn has_filter(&self) -> bool
Whether a filter is on.
Lines the filter hides (0 without one).
Sourcepub fn filter_hides(&self, line: usize) -> bool
pub fn filter_hides(&self, line: usize) -> bool
Whether the filter hides line.
The range of lines a fold hides holding line (not the filter’s).
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