package oxbow

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Oxbow_core.Output_matchSource

Sourcetype t = {
  1. name : string option;
  2. label : string option;
  3. case : Pattern.Case.t;
  4. invert : bool;
}
Sourceval is_empty : t -> bool

is_empty m is true when m has no match candidates.

Sourceval to_string : t -> string

to_string m renders m for display: the fields, then the case rule in parentheses (when it is not the default), then the inversion, if present, in brackets.

Sourceval compile : t -> (name:string option -> labels:string list -> bool, string) result

compile m compiles m into a matcher. An output matches when every field of m matches; an absent field matches any value. Is Error msg when a regex is malformed.

Sourceval t_of_yojson : Yojson.Safe.t -> t
Sourceval yojson_of_t : t -> Yojson.Safe.t