[][src]Struct watchman_client::CanonicalPath

pub struct CanonicalPath(_);

Represents a canonical path in the filesystem.

Methods

impl CanonicalPath[src]

pub fn canonicalize<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Construct the canonical version of the supplied path. This function will canonicalize the path and return the result, if successful. If you have already canonicalized the path, it is preferable to use the with_canonicalized_path function instead.

pub fn with_canonicalized_path(path: PathBuf) -> Self[src]

Construct from an already canonicalized path. This function will panic if the supplied path is not an absolute path!

Trait Implementations

impl Debug for CanonicalPath[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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