From 442b714dbb8aef547d8be882d95f6565da036218 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Fri, 15 Sep 2017 02:47:29 -0700 Subject: [PATCH] Document 'FromParam' impl for 'Cow'. --- lib/src/request/param.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/request/param.rs b/lib/src/request/param.rs index 7f631660..cbec06f3 100644 --- a/lib/src/request/param.rs +++ b/lib/src/request/param.rs @@ -94,6 +94,12 @@ use http::RawStr; /// decoded string is returned. Otherwise, an `Err` with the original path /// segment is returned. /// +/// * **Cow** +/// +/// 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._