pub struct State {
pub linum_old: usize,
pub linum_new: usize,
pub ignore: Ignore,
pub indent: Indent,
pub verbatim: Verbatim,
pub linum_last_zero_indent: usize,
pub linum_first_negative_indent: Option<usize>,
}
Expand description
Information on the current state during formatting
Fields§
§linum_old: usize
Corresponding line number in the original file
linum_new: usize
Corresponding line number in the formatted file
ignore: Ignore
Ignored status of the current line
indent: Indent
Indentation status of the current line
verbatim: Verbatim
Verbatim status of the current line
linum_last_zero_indent: usize
Line number in the new file of the last non-indented line
linum_first_negative_indent: Option<usize>
Line number in the new file of the first negatively indented line
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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