pub struct IndentRegion {
pub opener_depth: u16,
pub body_depth: u16,
pub start_line: u32,
pub end_line: u32,
}Expand description
A contiguous region of indented lines: everything between an opener and its closer.
The structural unit. foldmethod=indent folds one of these; indentation
guides draw one rule per grid column inside one of these
(IndentBlock). Keeping them separate is what lets both consumers share
the walk without either bending to the other’s shape — a fold does not
want two entries for a double-indent jump, and a guide does.
Fields§
§opener_depth: u16Display column of the line that opens the region.
body_depth: u16Display column of its first deeper line.
start_line: u32Opener line, inclusive.
end_line: u32Closer line, inclusive.
Trait Implementations§
Source§impl Clone for IndentRegion
impl Clone for IndentRegion
Source§fn clone(&self) -> IndentRegion
fn clone(&self) -> IndentRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndentRegion
Source§impl Debug for IndentRegion
impl Debug for IndentRegion
impl Eq for IndentRegion
Source§impl PartialEq for IndentRegion
impl PartialEq for IndentRegion
impl StructuralPartialEq for IndentRegion
Auto Trait Implementations§
impl Freeze for IndentRegion
impl RefUnwindSafe for IndentRegion
impl Send for IndentRegion
impl Sync for IndentRegion
impl Unpin for IndentRegion
impl UnsafeUnpin for IndentRegion
impl UnwindSafe for IndentRegion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.