pub struct Detected {
pub use_spaces: Option<bool>,
pub width: Option<usize>,
pub mixed: bool,
}Expand description
What the leading whitespace of a document says.
Fields§
§use_spaces: Option<bool>Spaces or tabs, if any line is indented.
width: Option<usize>The indent width, if the space-indented lines show one (2, 4 or 8).
mixed: boolSome lines are indented with tabs and others with (two or more) spaces.
Implementations§
Trait Implementations§
impl Copy for Detected
impl Eq for Detected
impl StructuralPartialEq for Detected
Auto Trait Implementations§
impl Freeze for Detected
impl RefUnwindSafe for Detected
impl Send for Detected
impl Sync for Detected
impl Unpin for Detected
impl UnsafeUnpin for Detected
impl UnwindSafe for Detected
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