Struct futhorc::url::Url [−][src]
pub struct Url(_);
A newtype for URL strings, analogous to str
.
Implementations
impl Url
[src]
pub fn new<S: AsRef<str> + ?Sized>(url: &S) -> &Url
[src]
Construct a new &Url
from any AsRef<str>
.
pub fn join<S: AsRef<str>>(&self, rhs: S) -> UrlBuf
[src]
Join any AsRef<str>
to the &Url
.
pub fn to_url_buf(&self) -> UrlBuf
[src]
Create a UrlBuf
from the current &Url
.
pub fn as_str(&self) -> &str
[src]
Return the str
representation of the current &Url
.