[]Struct path_absolutize::CWD

pub struct CWD { /* fields omitted */ }

Current working directory. Current working directory.

Methods from Deref<Target = PathBuf>

pub fn as_path(&self) -> &Path1.0.0[src]

Coerces to a Path slice.

Examples

use std::path::{Path, PathBuf};

let p = PathBuf::from("/test");
assert_eq!(Path::new("/test"), p.as_path());

pub fn capacity(&self) -> usize[src]

🔬 This is a nightly-only experimental API. (path_buf_capacity)

Invokes capacity on the underlying instance of OsString.

Trait Implementations

impl LazyStatic for CWD

impl Deref for CWD

type Target = PathBuf

The resulting type after dereferencing.

Auto Trait Implementations

impl Send for CWD

impl Sync for CWD

impl Unpin for CWD

impl RefUnwindSafe for CWD

impl UnwindSafe for CWD

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]