[][src]Struct iref::PathBuf

pub struct PathBuf { /* fields omitted */ }

A path buffer, that can be manipulated independently of an IRI.

Implementations

impl PathBuf[src]

pub fn new() -> PathBuf[src]

Create a new empty path.

pub fn into_bytes(self) -> Vec<u8>[src]

Consume the path and return its internal buffer.

pub fn as_ref(&self) -> &[u8][src]

Borrow the internal buffer storing this path.

pub fn as_str(&self) -> &str[src]

pub fn as_path(&self) -> Path<'_>[src]

pub fn as_path_mut(&mut self) -> PathMut<'_>[src]

pub fn as_iri_ref(&self) -> IriRef<'_>[src]

Borrow the path as an IRI reference.

pub fn into_iri_ref(self) -> IriRefBuf[src]

Convert the path into an IRI reference.

Trait Implementations

impl Clone for PathBuf[src]

impl Debug for PathBuf[src]

impl Display for PathBuf[src]

impl Eq for PathBuf[src]

impl<'a> From<&'a PathBuf> for IriRef<'a>[src]

impl<'a> From<NormalizedSegments<'a>> for PathBuf[src]

impl<'a> From<Path<'a>> for PathBuf[src]

impl From<PathBuf> for IriRefBuf[src]

impl Hash for PathBuf[src]

impl Ord for PathBuf[src]

impl<'a> PartialEq<&'a str> for PathBuf[src]

impl<'a> PartialEq<Path<'a>> for PathBuf[src]

impl PartialEq<PathBuf> for PathBuf[src]

impl<'a> PartialEq<PathMut<'a>> for PathBuf[src]

impl PartialOrd<PathBuf> for PathBuf[src]

impl StructuralEq for PathBuf[src]

impl StructuralPartialEq for PathBuf[src]

Auto Trait Implementations

impl RefUnwindSafe for PathBuf

impl Send for PathBuf

impl Sync for PathBuf

impl Unpin for PathBuf

impl UnwindSafe for PathBuf

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.