pub struct ArrayMatchConfig { /* private fields */ }Expand description
Per-path configuration for array element matching.
Implementations§
Source§impl ArrayMatchConfig
impl ArrayMatchConfig
Sourcepub fn new(mode: ArrayMatchMode) -> Self
pub fn new(mode: ArrayMatchMode) -> Self
Creates a config with the given mode and no ambiguity override.
Sourcepub fn with_ambiguous_strategy(self, strategy: AmbiguousMatchStrategy) -> Self
pub fn with_ambiguous_strategy(self, strategy: AmbiguousMatchStrategy) -> Self
Sets the ambiguity strategy override for this path.
Sourcepub fn mode(&self) -> &ArrayMatchMode
pub fn mode(&self) -> &ArrayMatchMode
Returns the array match mode.
Sourcepub fn ambiguous_strategy(&self) -> Option<&AmbiguousMatchStrategy>
pub fn ambiguous_strategy(&self) -> Option<&AmbiguousMatchStrategy>
Returns the ambiguity strategy override, if set.
Auto Trait Implementations§
impl Freeze for ArrayMatchConfig
impl RefUnwindSafe for ArrayMatchConfig
impl Send for ArrayMatchConfig
impl Sync for ArrayMatchConfig
impl Unpin for ArrayMatchConfig
impl UnsafeUnpin for ArrayMatchConfig
impl UnwindSafe for ArrayMatchConfig
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