pub struct LexSummary {
pub token_count: usize,
pub ident_count: usize,
pub keyword_count: usize,
pub operator_count: usize,
pub literal_count: usize,
pub comment_count: usize,
pub whitespace_count: usize,
}Expand description
A summary of a lexed file.
Fields§
§token_count: usizeTotal token count
ident_count: usizeNumber of identifier tokens
keyword_count: usizeNumber of keyword tokens
operator_count: usizeNumber of operator tokens
literal_count: usizeNumber of literal tokens
comment_count: usizeNumber of comment tokens
whitespace_count: usizeNumber of whitespace tokens
Implementations§
Trait Implementations§
Source§impl Debug for LexSummary
impl Debug for LexSummary
Source§impl Default for LexSummary
impl Default for LexSummary
Source§fn default() -> LexSummary
fn default() -> LexSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LexSummary
impl RefUnwindSafe for LexSummary
impl Send for LexSummary
impl Sync for LexSummary
impl Unpin for LexSummary
impl UnsafeUnpin for LexSummary
impl UnwindSafe for LexSummary
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