pub struct IndentStats {
pub space_lines: usize,
pub tab_lines: usize,
pub mixed_lines: usize,
pub blank_lines: usize,
pub most_common_step: usize,
}Fields§
§space_lines: usize§tab_lines: usize§mixed_lines: usize§blank_lines: usize§most_common_step: usizeImplementations§
Source§impl IndentStats
impl IndentStats
pub fn analyse(src: &str) -> Self
pub fn code_lines(&self) -> usize
pub fn is_spaces_only(&self) -> bool
pub fn is_tabs_only(&self) -> bool
Trait Implementations§
Source§impl Clone for IndentStats
impl Clone for IndentStats
Source§fn clone(&self) -> IndentStats
fn clone(&self) -> IndentStats
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 IndentStats
impl Debug for IndentStats
Source§impl Default for IndentStats
impl Default for IndentStats
Source§fn default() -> IndentStats
fn default() -> IndentStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndentStats
impl RefUnwindSafe for IndentStats
impl Send for IndentStats
impl Sync for IndentStats
impl Unpin for IndentStats
impl UnsafeUnpin for IndentStats
impl UnwindSafe for IndentStats
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