mirror of https://github.com/rwf2/Rocket.git
Document 'FromParam' impl for 'Cow<str>'.
This commit is contained in:
parent
9e4e46fd12
commit
442b714dbb
|
@ -94,6 +94,12 @@ use http::RawStr;
|
|||
/// decoded string is returned. Otherwise, an `Err` with the original path
|
||||
/// segment is returned.
|
||||
///
|
||||
/// * **Cow<str>**
|
||||
///
|
||||
/// Percent decodes the path segment, allocating only when necessary. If the
|
||||
/// decode is successful, the decoded string is returned. Otherwise, an
|
||||
/// `Err` with the original path segment is returned.
|
||||
///
|
||||
/// * **Option<T>** _where_ **T: FromParam**
|
||||
///
|
||||
/// _This implementation always returns successfully._
|
||||
|
|
Loading…
Reference in New Issue