is_anchored_literal

Function is_anchored_literal 

Source
fn is_anchored_literal(v: &[Hir]) -> bool
Expand description

Returns true if the elements in a Concat pattern are:

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