[−][src]Struct iref::PathBuf
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]
fn from(segments: NormalizedSegments<'a>) -> PathBuf
[src]
impl<'a> From<Path<'a>> for PathBuf
[src]
impl From<PathBuf> for IriRefBuf
[src]
impl Hash for PathBuf
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PathBuf
[src]
fn cmp(&self, other: &PathBuf) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[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]
fn eq(&self, other: &PathMut<'a>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<PathBuf> for PathBuf
[src]
fn partial_cmp(&self, other: &PathBuf) -> Option<Ordering>
[src]
fn lt(&self, other: &PathBuf) -> bool
[src]
fn le(&self, other: &PathBuf) -> bool
[src]
fn gt(&self, other: &PathBuf) -> bool
[src]
fn ge(&self, other: &PathBuf) -> bool
[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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,