Enum rocket::http::uri::Path [−][src]
pub enum Path {}
Expand description
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<'a, 'b> FromUriParam<Path, &'a &'b str> for PathBuf
[src]
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
.
pub fn from_uri_param(param: &'a &'b str) -> &'b Path
[src]
pub fn from_uri_param(param: &'a &'b str) -> &'b Path
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'a> FromUriParam<Path, &'a Path> for &'a Path
[src]
impl<'a> FromUriParam<Path, &'a Path> for &'a Path
[src]pub fn from_uri_param(param: &'a Path) -> &'a Path
[src]
pub fn from_uri_param(param: &'a Path) -> &'a Path
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'a> FromUriParam<Path, &'a Path> for PathBuf
[src]
impl<'a> FromUriParam<Path, &'a Path> for PathBuf
[src]pub fn from_uri_param(param: &'a Path) -> &'a Path
[src]
pub fn from_uri_param(param: &'a Path) -> &'a Path
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'a> FromUriParam<Path, &'a str> for PathBuf
[src]
impl<'a> FromUriParam<Path, &'a str> for PathBuf
[src]A no cost conversion allowing an &str
to be used in place of a PathBuf
.
pub fn from_uri_param(param: &'a str) -> &'a Path
[src]
pub fn from_uri_param(param: &'a str) -> &'a Path
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'x, 'a> FromUriParam<Path, &'x &'a Path> for PathBuf
[src]
impl<'x, 'a> FromUriParam<Path, &'x &'a Path> for PathBuf
[src]pub fn from_uri_param(param: &'x &'a Path) -> &'x &'a Path
[src]
pub fn from_uri_param(param: &'x &'a Path) -> &'x &'a Path
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'x, 'a> FromUriParam<Path, &'x &'a Path> for &'a Path
[src]
impl<'x, 'a> FromUriParam<Path, &'x &'a Path> for &'a Path
[src]pub fn from_uri_param(param: &'x &'a Path) -> &'x &'a Path
[src]
pub fn from_uri_param(param: &'x &'a Path) -> &'x &'a Path
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'x, 'a> FromUriParam<Path, &'x PathBuf> for &'a Path
[src]
impl<'x, 'a> FromUriParam<Path, &'x PathBuf> for &'a Path
[src]pub fn from_uri_param(param: &'x PathBuf) -> &'x PathBuf
[src]
pub fn from_uri_param(param: &'x PathBuf) -> &'x PathBuf
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'x> FromUriParam<Path, &'x PathBuf> for PathBuf
[src]
impl<'x> FromUriParam<Path, &'x PathBuf> for PathBuf
[src]pub fn from_uri_param(param: &'x PathBuf) -> &'x PathBuf
[src]
pub fn from_uri_param(param: &'x PathBuf) -> &'x PathBuf
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'x, 'a> FromUriParam<Path, &'x mut &'a Path> for &'a Path
[src]
impl<'x, 'a> FromUriParam<Path, &'x mut &'a Path> for &'a Path
[src]pub fn from_uri_param(param: &'x mut &'a Path) -> &'x mut &'a Path
[src]
pub fn from_uri_param(param: &'x mut &'a Path) -> &'x mut &'a Path
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'x, 'a> FromUriParam<Path, &'x mut &'a Path> for PathBuf
[src]
impl<'x, 'a> FromUriParam<Path, &'x mut &'a Path> for PathBuf
[src]pub fn from_uri_param(param: &'x mut &'a Path) -> &'x mut &'a Path
[src]
pub fn from_uri_param(param: &'x mut &'a Path) -> &'x mut &'a Path
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'x> FromUriParam<Path, &'x mut PathBuf> for PathBuf
[src]
impl<'x> FromUriParam<Path, &'x mut PathBuf> for PathBuf
[src]pub fn from_uri_param(param: &'x mut PathBuf) -> &'x mut PathBuf
[src]
pub fn from_uri_param(param: &'x mut PathBuf) -> &'x mut PathBuf
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'x, 'a> FromUriParam<Path, &'x mut PathBuf> for &'a Path
[src]
impl<'x, 'a> FromUriParam<Path, &'x mut PathBuf> for &'a Path
[src]pub fn from_uri_param(param: &'x mut PathBuf) -> &'x mut PathBuf
[src]
pub fn from_uri_param(param: &'x mut PathBuf) -> &'x mut PathBuf
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl FromUriParam<Path, PathBuf> for PathBuf
[src]
impl FromUriParam<Path, PathBuf> for PathBuf
[src]pub fn from_uri_param(param: PathBuf) -> PathBuf
[src]
pub fn from_uri_param(param: PathBuf) -> PathBuf
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl<'a> FromUriParam<Path, PathBuf> for &'a Path
[src]
impl<'a> FromUriParam<Path, PathBuf> for &'a Path
[src]pub fn from_uri_param(param: PathBuf) -> PathBuf
[src]
pub fn from_uri_param(param: PathBuf) -> PathBuf
[src]Converts a value of type T
into a value of type Self::Target
. The
resulting value of type Self::Target
will be rendered into a URI using
its UriDisplay
implementation. Read more
impl UriDisplay<Path> for Path
[src]
impl UriDisplay<Path> for Path
[src]Percent-encodes each segment in the path and normalizes separators.
impl UriDisplay<Path> for PathBuf
[src]
impl UriDisplay<Path> for PathBuf
[src]Percent-encodes each segment in the path and normalizes separators.
impl Copy for Path
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
[src]
impl<T> IntoCollection<T> for T
[src]pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
[src]
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
[src]Converts self
into a collection.
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
[src]
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,