Closed elinorbgr closed 7 years ago
Hi,
This PR adds a ?Sized bound to functions that take &S where S: Borrow<str> arguments.
?Sized
&S where S: Borrow<str>
This allows to call them with S = str: give as argument string literals or &strs, without needing an other level of reference.
S = str
&str
Thanks!
Hi,
This PR adds a
?Sized
bound to functions that take&S where S: Borrow<str>
arguments.This allows to call them with
S = str
: give as argument string literals or&str
s, without needing an other level of reference.