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

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

Required methods

pub fn to_string(&self) -> FuResult<String>[src]

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...