[−][src]Struct lib::common::AbsolutePath
Represents an (owned) path which must be absolute
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)Trait Implementations
impl Clone for AbsolutePath[src]
fn clone(&self) -> AbsolutePath[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl AsRef<Path> for AbsolutePath[src]
impl From<PathBuf> for AbsolutePath[src]
impl<'_> From<&'_ Path> for AbsolutePath[src]
impl<'_> From<&'_ str> for AbsolutePath[src]
impl From<AbsolutePath> for Error[src]
fn from(original: AbsolutePath) -> Error[src]
impl From<AbsolutePath> for Error[src]
fn from(original: AbsolutePath) -> Error[src]
impl PartialEq<AbsolutePath> for AbsolutePath[src]
fn eq(&self, other: &AbsolutePath) -> bool[src]
fn ne(&self, other: &AbsolutePath) -> bool[src]
impl Eq for AbsolutePath[src]
impl Display for AbsolutePath[src]
impl Debug for AbsolutePath[src]
impl Deref for AbsolutePath[src]
impl Hash for AbsolutePath[src]
Auto Trait Implementations
impl Sync for AbsolutePath
impl Send for AbsolutePath
impl Unpin for AbsolutePath
impl RefUnwindSafe for AbsolutePath
impl UnwindSafe for AbsolutePath
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,