pub enum AmbiguousMatchStrategy {
Strict,
BestMatch,
Silent,
}Expand description
Controls behavior when multiple actual array elements could match a single expected element.
Variants§
Strict
Fail if more than one candidate exists.
BestMatch
Pick the candidate with the fewest diffs, with a warning comment.
Silent
Pick the candidate with the fewest diffs, without a warning comment.
Trait Implementations§
Source§impl Default for AmbiguousMatchStrategy
impl Default for AmbiguousMatchStrategy
Source§fn default() -> AmbiguousMatchStrategy
fn default() -> AmbiguousMatchStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AmbiguousMatchStrategy
impl RefUnwindSafe for AmbiguousMatchStrategy
impl Send for AmbiguousMatchStrategy
impl Sync for AmbiguousMatchStrategy
impl Unpin for AmbiguousMatchStrategy
impl UnsafeUnpin for AmbiguousMatchStrategy
impl UnwindSafe for AmbiguousMatchStrategy
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