Trait ToStringExt
skellige::prelude
pub trait ToStringExt { pub fn to_string(&self) -> Result<String, FuError>; }
pub fn to_string(&self) -> Result<String, FuError>
Returns a new String from the given type.
String
use fungus::prelude::*; assert_eq!(OsStr::new("foo").to_string().unwrap(), "foo".to_string()); assert_eq!(Path::new("/foo").to_string().unwrap(), "/foo".to_string());
impl ToStringExt for OsStr
impl ToStringExt for Path