pub struct RoundTripConfigExt {
pub normalise_whitespace: bool,
pub strip_comments: bool,
pub case_insensitive: bool,
pub allow_trailing_newlines: bool,
pub max_edit_distance: usize,
}Expand description
Configuration for a round-trip property check.
Fields§
§normalise_whitespace: boolWhether to normalise whitespace before comparison
strip_comments: boolWhether to strip comments before comparison
case_insensitive: boolWhether to ignore case differences
allow_trailing_newlines: boolWhether to allow extra trailing newlines
max_edit_distance: usizeMaximum allowed edit distance (0 means exact match required)
Implementations§
Trait Implementations§
Source§impl Clone for RoundTripConfigExt
impl Clone for RoundTripConfigExt
Source§fn clone(&self) -> RoundTripConfigExt
fn clone(&self) -> RoundTripConfigExt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoundTripConfigExt
impl Debug for RoundTripConfigExt
Auto Trait Implementations§
impl Freeze for RoundTripConfigExt
impl RefUnwindSafe for RoundTripConfigExt
impl Send for RoundTripConfigExt
impl Sync for RoundTripConfigExt
impl Unpin for RoundTripConfigExt
impl UnsafeUnpin for RoundTripConfigExt
impl UnwindSafe for RoundTripConfigExt
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