pub struct CommentTracker {
pub block_depth: usize,
pub in_line_comment: bool,
}Fields§
§block_depth: usize§in_line_comment: boolImplementations§
Source§impl CommentTracker
impl CommentTracker
pub fn new() -> Self
pub fn process_pair(&mut self, ch: char, next: char)
pub fn end_of_line(&mut self)
pub fn in_comment(&self) -> bool
Trait Implementations§
Source§impl Clone for CommentTracker
impl Clone for CommentTracker
Source§fn clone(&self) -> CommentTracker
fn clone(&self) -> CommentTracker
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 CommentTracker
impl Debug for CommentTracker
Source§impl Default for CommentTracker
impl Default for CommentTracker
Source§fn default() -> CommentTracker
fn default() -> CommentTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommentTracker
impl RefUnwindSafe for CommentTracker
impl Send for CommentTracker
impl Sync for CommentTracker
impl Unpin for CommentTracker
impl UnsafeUnpin for CommentTracker
impl UnwindSafe for CommentTracker
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