mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
add doc ref
This commit is contained in:
parent
0dd27bd224
commit
a18bd5dac0
@ -37,7 +37,10 @@ impl<S> Router<S> {
|
|||||||
self.0.recognize(path).is_some()
|
self.0.recognize(path).is_some()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Build named resource path
|
/// Build named resource path.
|
||||||
|
///
|
||||||
|
/// Check [`HttpRequest::url_for()`](../struct.HttpRequest.html#method.url_for)
|
||||||
|
/// for detailed information.
|
||||||
pub fn resource_path<U, I>(&self, name: &str, elements: U)
|
pub fn resource_path<U, I>(&self, name: &str, elements: U)
|
||||||
-> Result<String, UrlGenerationError>
|
-> Result<String, UrlGenerationError>
|
||||||
where U: IntoIterator<Item=I>,
|
where U: IntoIterator<Item=I>,
|
||||||
|
Loading…
Reference in New Issue
Block a user