[][src]Enum rocket_http::uri::Path

pub enum Path {}

Marker type indicating use of a type for the path UriPart of a URI.

In route URIs, this corresponds to all of the text before a ?, if any, or all of the text in the URI otherwise:

#[get("/home/<name>/<page>?<item>")]
       ^------------------ Path

Trait Implementations

impl UriDisplay<Path> for Path[src]

Percent-encodes each segment in the path and normalizes separators.

impl UriDisplay<Path> for PathBuf[src]

Percent-encodes each segment in the path and normalizes separators.

impl<'a> FromUriParam<Path, &'a Path> for &'a Path[src]

type Target = &'a Path

The resulting type of this conversion.

impl<'x, 'a> FromUriParam<Path, &'x &'a Path> for &'a Path[src]

type Target = &'x &'a Path

The resulting type of this conversion.

impl<'x, 'a> FromUriParam<Path, &'x mut &'a Path> for &'a Path[src]

type Target = &'x mut &'a Path

The resulting type of this conversion.

impl FromUriParam<Path, PathBuf> for PathBuf[src]

type Target = PathBuf

The resulting type of this conversion.

impl<'x> FromUriParam<Path, &'x PathBuf> for PathBuf[src]

type Target = &'x PathBuf

The resulting type of this conversion.

impl<'x> FromUriParam<Path, &'x mut PathBuf> for PathBuf[src]

type Target = &'x mut PathBuf

The resulting type of this conversion.

impl<'a> FromUriParam<Path, &'a Path> for PathBuf[src]

type Target = &'a Path

The resulting type of this conversion.

impl<'x, 'a> FromUriParam<Path, &'x &'a Path> for PathBuf[src]

type Target = &'x &'a Path

The resulting type of this conversion.

impl<'x, 'a> FromUriParam<Path, &'x mut &'a Path> for PathBuf[src]

type Target = &'x mut &'a Path

The resulting type of this conversion.

impl<'a> FromUriParam<Path, PathBuf> for &'a Path[src]

type Target = PathBuf

The resulting type of this conversion.

impl<'x, 'a> FromUriParam<Path, &'x PathBuf> for &'a Path[src]

type Target = &'x PathBuf

The resulting type of this conversion.

impl<'x, 'a> FromUriParam<Path, &'x mut PathBuf> for &'a Path[src]

type Target = &'x mut PathBuf

The resulting type of this conversion.

impl<'a> FromUriParam<Path, &'a str> for PathBuf[src]

A no cost conversion allowing an &str to be used in place of a PathBuf.

type Target = &'a Path

The resulting type of this conversion.

impl<'a, 'b> FromUriParam<Path, &'a &'b str> for PathBuf[src]

A no cost conversion allowing an &&str to be used in place of a PathBuf.

type Target = &'b Path

The resulting type of this conversion.

impl UriPart for Path[src]

impl Copy for Path[src]

impl Clone for Path[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Path[src]

Auto Trait Implementations

impl Sync for Path

impl Send for Path

impl Unpin for Path

impl RefUnwindSafe for Path

impl UnwindSafe for Path

Blanket Implementations

impl<T> IntoCollection<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> From<T> for 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.

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

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

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

impl<T, I> AsResult<T, I> for T where
    I: Input
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.