Function is_absolute

Source
pub fn is_absolute(path: &str) -> bool
Expand description

The method determines if path is an absolute path. If the given path is a zero-length string, false will be returned. #Example

assert_eq!(nodejs_path::posix::is_absolute("/foo/bar"), true);
assert_eq!(nodejs_path::posix::is_absolute("/baz/.."), true);
assert_eq!(nodejs_path::posix::is_absolute("qux/"), false);
assert_eq!(nodejs_path::posix::is_absolute("."), false);  
assert_eq!(nodejs_path::posix::is_absolute(""), false);