pub trait AsStr { // Required method fn as_str(&self) -> Result<&str>; }
A trait to support on-demand conversion from UTF-8
Converts this to an &str
&str
Implements AsStr for a byte slice
AsStr