pub struct IndentRegion {
pub start_line: usize,
pub end_line: usize,
pub indent_width: usize,
}Expand description
A contiguous region of source lines that share the same base indentation.
Fields§
§start_line: usize1-based start line.
end_line: usize1-based end line (inclusive).
indent_width: usizeBase indentation width for this region.
Implementations§
Source§impl IndentRegion
impl IndentRegion
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 · 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 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