[][src]Struct iref::PathMut

pub struct PathMut<'a> { /* fields omitted */ }

Methods

impl<'a> PathMut<'a>[src]

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

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

pub fn is_empty(&self) -> bool[src]

Checks if the path is empty.

Returns true if the path is `` or /.

pub fn is_absolute(&self) -> bool[src]

Checks if the path is absolute.

A path is absolute if it starts with a /. A path is necessarily absolute if the IRI it is contained in contains a non-empty authority.

pub fn is_relative(&self) -> bool[src]

Checks if the path is relative.

A path is relative if it does not start with a /. A path cannot be relative if the IRI it is contained in contains a non-empty authority.

pub fn is_open(&self) -> bool[src]

Checks if the path ends with a / but is not equal to /.

pub fn is_closed(&self) -> bool[src]

pub fn open(&mut self)[src]

Make sure the last segment is followed by a /.

This has no effect if the path is empty.

pub fn segments(&self) -> Segments[src]

Produces an iterator over the segments of the IRI path.

Note that this is an IRI path, not an IRI reference path: no normalization occurs with . and .. segments. This is done by the IRI reference resolution function.

Empty segments are preserved: the path a//b will raise the three segments a, and `b`. The absolute path `/` has no segments, but the path `/a/` has two segments, `a` and.

pub fn normalized_segments(&self) -> NormalizedSegments[src]

pub fn push<'s>(&mut self, segment: Segment<'s>)[src]

Add a segment at the end of the path.

pub fn pop(&mut self)[src]

pub fn clear(&mut self)[src]

pub fn symbolic_append<'s, P: IntoIterator<Item = Segment<'s>>>(
    &mut self,
    path: P
)
[src]

pub fn normalize(&mut self)[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for PathMut<'a>

impl<'a> Send for PathMut<'a>

impl<'a> Sync for PathMut<'a>

impl<'a> Unpin for PathMut<'a>

impl<'a> !UnwindSafe for PathMut<'a>

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, 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.