pub struct DoBlockTracker {
pub tab_width: usize,
/* private fields */
}Fields§
§tab_width: usizeImplementations§
Source§impl DoBlockTracker
impl DoBlockTracker
pub fn new(tab_width: usize) -> Self
pub fn enter(&mut self, col: usize)
pub fn exit(&mut self) -> Option<usize>
pub fn current_col(&self) -> Option<usize>
pub fn is_statement(&self, line: &str) -> bool
pub fn is_deeper(&self, line: &str) -> bool
pub fn is_closer(&self, line: &str) -> bool
pub fn depth(&self) -> usize
Trait Implementations§
Source§impl Clone for DoBlockTracker
impl Clone for DoBlockTracker
Source§fn clone(&self) -> DoBlockTracker
fn clone(&self) -> DoBlockTracker
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 moreSource§impl Debug for DoBlockTracker
impl Debug for DoBlockTracker
Auto Trait Implementations§
impl Freeze for DoBlockTracker
impl RefUnwindSafe for DoBlockTracker
impl Send for DoBlockTracker
impl Sync for DoBlockTracker
impl Unpin for DoBlockTracker
impl UnsafeUnpin for DoBlockTracker
impl UnwindSafe for DoBlockTracker
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