1. 9
  1.  

  2. 2

    In Rust’s generics there are corners where the complexity can explode. Sometimes, like this case, it’s better not to go there. Pay a cost of a boolean for a Cow wrapper or use a macro instead.