[][src]Function monotonic_solver::search

pub fn search<T, F, U>(
    start: &[T],
    pat: F,
    max_size: Option<usize>,
    filter: &[T],
    order_constraints: &[(T, T)],
    infer: fn(_: Solver<'_, T>, story: &[T]) -> Option<T>
) -> (Vec<U>, Result<(), Error>) where
    T: Clone + PartialEq + Eq + Hash,
    F: Fn(&T) -> Option<U>, 

Searches for matches by a pattern.

  • pat specifies the map and acceptance criteria
  • max_size specifies the maximum size of proof

Returns Ok if all rules where exausted. Returns Err if the maximum size of proof was exceeded.