pub struct WsErrorHighlight {
pub rule: WsRule,
pub old: bool,
pub new: bool,
pub context: bool,
}Expand description
Which line kinds get whitespace-error highlighting, plus the rule to check
against. git’s --ws-error-highlight defaults to highlighting only new
(+) lines.
Fields§
§rule: WsRuleThe resolved whitespace rule to check each line against.
old: boolHighlight errors on removed (-) lines.
new: boolHighlight errors on added (+) lines.
context: boolHighlight errors on context ( ) lines.
Trait Implementations§
Source§impl Clone for WsErrorHighlight
impl Clone for WsErrorHighlight
Source§fn clone(&self) -> WsErrorHighlight
fn clone(&self) -> WsErrorHighlight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WsErrorHighlight
Auto Trait Implementations§
impl Freeze for WsErrorHighlight
impl RefUnwindSafe for WsErrorHighlight
impl Send for WsErrorHighlight
impl Sync for WsErrorHighlight
impl Unpin for WsErrorHighlight
impl UnsafeUnpin for WsErrorHighlight
impl UnwindSafe for WsErrorHighlight
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