partial_anchored_literal_to_like

Function partial_anchored_literal_to_like 

Source
fn partial_anchored_literal_to_like(v: &[Hir]) -> Option<String>
Expand description

Returns the LIKE pattern if the Concat pattern is partial anchored:

  • [Look::Start, Literal(_)]
  • [Literal(_), Look::End]

Full anchored patterns are handled by anchored_literal_to_expr.