pub fn to_str(url: &Url) -> ~str
Format a url
as a string
url
- a url.
a str
that contains the formatted url. Note that this will usually
be an inverse of from_str
but might strip out unneeded separators.
for example, "http://somehost.com?", when parsed and formatted, will
result in just "http://somehost.com".
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).