Document 'FromParam' impl for 'Cow<str>'.

This commit is contained in:
Sergio Benitez 2017-09-15 02:47:29 -07:00
parent 9e4e46fd12
commit 442b714dbb
1 changed files with 6 additions and 0 deletions

View File

@ -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&lt;T>** _where_ **T: FromParam**
///
/// _This implementation always returns successfully._