Enum rocket::http::uri::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 Clone for Path
pub fn clone(&self) -> Path
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Path
impl Debug for Path
impl<'a, 'b> FromUriParam<Path, &'a &'b str> for PathBuf
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.
pub fn from_uri_param(param: &'a &'b str) -> &'b Path
impl<'a> FromUriParam<Path, &'a Path> for PathBuf
type Target = &'a Path
The resulting type of this conversion.
pub fn from_uri_param(param: &'a Path) -> &'a Path
impl<'a> FromUriParam<Path, &'a Path> for &'a Path
type Target = &'a Path
The resulting type of this conversion.
pub fn from_uri_param(param: &'a Path) -> &'a Path
impl<'a> FromUriParam<Path, &'a str> for PathBuf
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.
pub fn from_uri_param(param: &'a str) -> &'a Path
impl<'x, 'a> FromUriParam<Path, &'x &'a Path> for &'a Path
type Target = &'x &'a Path
The resulting type of this conversion.
pub fn from_uri_param(param: &'x &'a Path) -> &'x &'a Path
impl<'x, 'a> FromUriParam<Path, &'x &'a Path> for PathBuf
type Target = &'x &'a Path
The resulting type of this conversion.
pub fn from_uri_param(param: &'x &'a Path) -> &'x &'a Path
impl<'x, 'a> FromUriParam<Path, &'x PathBuf> for &'a Path
type Target = &'x PathBuf
The resulting type of this conversion.
pub fn from_uri_param(param: &'x PathBuf) -> &'x PathBuf
impl<'x> FromUriParam<Path, &'x PathBuf> for PathBuf
type Target = &'x PathBuf
The resulting type of this conversion.
pub fn from_uri_param(param: &'x PathBuf) -> &'x PathBuf
impl<'x, 'a> FromUriParam<Path, &'x mut &'a Path> for &'a Path
type Target = &'x mut &'a Path
The resulting type of this conversion.
pub fn from_uri_param(param: &'x mut &'a Path) -> &'x mut &'a Path
impl<'x, 'a> FromUriParam<Path, &'x mut &'a Path> for PathBuf
type Target = &'x mut &'a Path
The resulting type of this conversion.
pub fn from_uri_param(param: &'x mut &'a Path) -> &'x mut &'a Path
impl<'x, 'a> FromUriParam<Path, &'x mut PathBuf> for &'a Path
type Target = &'x mut PathBuf
The resulting type of this conversion.
pub fn from_uri_param(param: &'x mut PathBuf) -> &'x mut PathBuf
impl<'x> FromUriParam<Path, &'x mut PathBuf> for PathBuf
type Target = &'x mut PathBuf
The resulting type of this conversion.
pub fn from_uri_param(param: &'x mut PathBuf) -> &'x mut PathBuf
impl<A, E, T> FromUriParam<Path, A> for Result<T, E> where
T: FromUriParam<Path, A>,
T: FromUriParam<Path, A>,
A no cost conversion allowing T
to be used in place of an Result<T, E>
.
type Target = <T as FromUriParam<Path, A>>::Target
The resulting type of this conversion.
pub fn from_uri_param(
param: A
) -> <Result<T, E> as FromUriParam<Path, A>>::Target
param: A
) -> <Result<T, E> as FromUriParam<Path, A>>::Target
impl<A, T> FromUriParam<Path, A> for Option<T> where
T: FromUriParam<Path, A>,
T: FromUriParam<Path, A>,
A no cost conversion allowing any T
to be used in place of an Option<T>
.
type Target = <T as FromUriParam<Path, A>>::Target
The resulting type of this conversion.
pub fn from_uri_param(param: A) -> <Option<T> as FromUriParam<Path, A>>::Target
impl<'a> FromUriParam<Path, PathBuf> for &'a Path
type Target = PathBuf
The resulting type of this conversion.
pub fn from_uri_param(param: PathBuf) -> PathBuf
impl FromUriParam<Path, PathBuf> for PathBuf
type Target = PathBuf
The resulting type of this conversion.
pub fn from_uri_param(param: PathBuf) -> PathBuf
impl UriDisplay<Path> for PathBuf
Percent-encodes each segment in the path and normalizes separators.
impl UriDisplay<Path> for Path
Percent-encodes each segment in the path and normalizes separators.
impl UriPart for Path
Auto Trait Implementations
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,