[][src]Trait fungus::core::ToStringExt

pub trait ToStringExt {
    fn to_string(&self) -> Result<String>;
}

Required methods

fn to_string(&self) -> Result<String>

Returns a new String from the given type.

Examples

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());
Loading content...

Implementors

impl ToStringExt for OsStr[src]

impl ToStringExt for Path[src]

Loading content...