pub struct WsApplyOptions {
pub unidiff_zero: bool,
pub ws_rule: WsRule,
pub ws_fix: bool,
pub ws_ignore_change: bool,
}Expand description
Options for apply_file_patch_ws.
Fields§
§unidiff_zero: bool--unidiff-zero.
ws_rule: WsRuleThe per-path whitespace rule.
ws_fix: bool--whitespace=fix (git’s correct_ws_error).
ws_ignore_change: bool--ignore-space-change / --ignore-whitespace (git’s ignore_ws_change).
Trait Implementations§
Source§impl Clone for WsApplyOptions
impl Clone for WsApplyOptions
Source§fn clone(&self) -> WsApplyOptions
fn clone(&self) -> WsApplyOptions
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 WsApplyOptions
Auto Trait Implementations§
impl Freeze for WsApplyOptions
impl RefUnwindSafe for WsApplyOptions
impl Send for WsApplyOptions
impl Sync for WsApplyOptions
impl Unpin for WsApplyOptions
impl UnsafeUnpin for WsApplyOptions
impl UnwindSafe for WsApplyOptions
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