You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This trait is defined for String, &str and &[u8]. It feels like there should be a way to write an elegant generic impl to cover a variety of classes using AsRef and similar, but initial efforts were fruitless. This was in part due to rustc's refusal to allow more than one generic implementation of a trait for fear that the resulting code will be ambiguous.
The text was updated successfully, but these errors were encountered:
This trait is defined for
String
,&str
and&[u8]
. It feels like there should be a way to write an elegant generic impl to cover a variety of classes usingAsRef
and similar, but initial efforts were fruitless. This was in part due to rustc's refusal to allow more than one generic implementation of a trait for fear that the resulting code will be ambiguous.The text was updated successfully, but these errors were encountered: