Struct std::path::Path [] [src]

pub struct Path {
    pub inner: str,
}

Fields

inner

Methods

impl Path

fn new<S: AsRef<str> + ?Sized>(s: &S) -> &Path

Create a new path

Safety

This uses the same logic in libstd, it should be safe for valid &str