[−][src]Struct iref::PathMut
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]
&mut self,
path: P
)
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]
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, 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>,