pub struct PatternRegistry { /* private fields */ }Expand description
Registry of all pattern rules.
Implementations§
Source§impl PatternRegistry
impl PatternRegistry
Sourcepub fn try_resolve(
&self,
scenario: &MergeScenario<&str>,
) -> Option<ResolutionCandidate>
pub fn try_resolve( &self, scenario: &MergeScenario<&str>, ) -> Option<ResolutionCandidate>
Try all rules against a conflict, returning the first match.
Sourcepub fn try_resolve_all(
&self,
scenario: &MergeScenario<&str>,
) -> Vec<ResolutionCandidate>
pub fn try_resolve_all( &self, scenario: &MergeScenario<&str>, ) -> Vec<ResolutionCandidate>
Try all rules and return ALL matching resolutions, not just the first.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatternRegistry
impl !RefUnwindSafe for PatternRegistry
impl Send for PatternRegistry
impl Sync for PatternRegistry
impl Unpin for PatternRegistry
impl !UnwindSafe for PatternRegistry
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