In Rust standard library functions with name ending with a prefix or a conjunction (e.g. or, or_else, and_then, etc.) have the parameter, to which the particle (prefix or conjunction) refers, first in parameters list.
I believe, with_capacity_in should follow the same rule, and have the alloc as the first argument, not second.
In Rust standard library functions with name ending with a prefix or a conjunction (e.g.
or
,or_else
,and_then
, etc.) have the parameter, to which the particle (prefix or conjunction) refers, first in parameters list.I believe,
with_capacity_in
should follow the same rule, and have thealloc
as the first argument, not second.