pub struct WsIgnore {
pub all_space: bool,
pub space_change: bool,
pub space_at_eol: bool,
pub cr_at_eol: bool,
}Expand description
Whitespace-ignore flags for line comparison, mirroring git’s
XDF_WHITESPACE_FLAGS (-w, -b, --ignore-space-at-eol,
--ignore-cr-at-eol). Only one of the whitespace flavours is honoured per
git’s precedence (-w ⊃ -b ⊃ --ignore-space-at-eol ⊃
--ignore-cr-at-eol); when several are set, the strongest wins, matching
the cascade in xdl_recmatch.
Fields§
§all_space: bool-w / --ignore-all-space: ignore all whitespace when comparing lines.
space_change: bool-b / --ignore-space-change: ignore changes in amount of whitespace.
space_at_eol: bool--ignore-space-at-eol: ignore whitespace at end of line.
cr_at_eol: bool--ignore-cr-at-eol: ignore a carriage-return at end of line.
Implementations§
Trait Implementations§
impl Copy for WsIgnore
impl Eq for WsIgnore
impl StructuralPartialEq for WsIgnore
Auto Trait Implementations§
impl Freeze for WsIgnore
impl RefUnwindSafe for WsIgnore
impl Send for WsIgnore
impl Sync for WsIgnore
impl Unpin for WsIgnore
impl UnsafeUnpin for WsIgnore
impl UnwindSafe for WsIgnore
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