pub struct IndentationChecker {
pub tab_width: usize,
pub errors: Vec<IndentMismatchError>,
}Fields§
§tab_width: usize§errors: Vec<IndentMismatchError>Implementations§
Source§impl IndentationChecker
impl IndentationChecker
pub fn new(tab_width: usize) -> Self
pub fn check_transition( &mut self, line_number: usize, prev: &IndentLevel, next: &IndentLevel, context: &str, )
pub fn is_clean(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Source§impl Debug for IndentationChecker
impl Debug for IndentationChecker
Source§impl Default for IndentationChecker
impl Default for IndentationChecker
Source§fn default() -> IndentationChecker
fn default() -> IndentationChecker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndentationChecker
impl RefUnwindSafe for IndentationChecker
impl Send for IndentationChecker
impl Sync for IndentationChecker
impl Unpin for IndentationChecker
impl UnsafeUnpin for IndentationChecker
impl UnwindSafe for IndentationChecker
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