[−][src]Struct watchman_client::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
Auto Trait Implementations
impl Send for CanonicalPath
impl Sync for CanonicalPath
impl Unpin for CanonicalPath
impl UnwindSafe for CanonicalPath
impl RefUnwindSafe for CanonicalPath
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,