pub struct BolInfo {
pub none: usize,
pub spaces: usize,
pub tabs: usize,
pub mixed: usize,
}Expand description
Information about line beginnings in the file
Fields§
§none: usizeNumber of lines that have no whitespace at the beginning
spaces: usizeNumber of all space line beginnings
tabs: usizeNumber of all tab line beginnings
mixed: usizeNumber of mixed space/tab line beginnings
Implementations§
Source§impl BolInfo
impl BolInfo
Sourcepub fn get_common_bol(
&self,
tab_size: usize,
round_down: bool,
) -> BeginningOfLine
pub fn get_common_bol( &self, tab_size: usize, round_down: bool, ) -> BeginningOfLine
Get the most common beginning of line type in the file
Trait Implementations§
impl Eq for BolInfo
impl StructuralPartialEq for BolInfo
Auto Trait Implementations§
impl Freeze for BolInfo
impl RefUnwindSafe for BolInfo
impl Send for BolInfo
impl Sync for BolInfo
impl Unpin for BolInfo
impl UnwindSafe for BolInfo
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