[−][src]Trait phollaits::StringExt
Trait contains some extensions for String.
Required methods
pub fn shellexpand(self) -> String
[src]
method to allow shell-like expansions in String.
Example to expand tilda
extern crate phollaits; use phollaits::*; fn main() { let a = "~/projects/phollaits".to_string(); let b = s.shellexpand(); assert_eq!(b, "/home/ph0llux/projects/phollaits".to_string()); }