[][src]Struct iref::Segment

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

Methods

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

pub fn current() -> Segment<'static>[src]

pub fn parent() -> Segment<'static>[src]

pub fn len(&self) -> usize[src]

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

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

Get the underlying segment slice as a string slice.

pub fn as_pct_str(&self) -> &PctStr[src]

Get the underlying segment slice as a percent-encoded string slice.

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

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

Checks if the segment is empty.

pub fn open(&mut self)[src]

Trait Implementations

impl<'a> Clone for Segment<'a>[src]

impl<'a> Copy for Segment<'a>[src]

impl<'a> Debug for Segment<'a>[src]

impl<'a> Display for Segment<'a>[src]

impl<'a> Eq for Segment<'a>[src]

impl<'a> Hash for Segment<'a>[src]

impl<'a> Ord for Segment<'a>[src]

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

impl<'a> PartialEq<Segment<'a>> for Segment<'a>[src]

impl<'a> PartialOrd<Segment<'a>> for Segment<'a>[src]

impl<'a> TryFrom<&'a str> for Segment<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Segment<'a>

impl<'a> Send for Segment<'a>

impl<'a> Sync for Segment<'a>

impl<'a> Unpin for Segment<'a>

impl<'a> UnwindSafe for Segment<'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> 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.