pub struct Url(/* private fields */);
Expand description
The string representation of a URL, either absolute or relative, that has been verified as a valid URL on construction.
Implementations§
Source§impl Url
impl Url
pub fn parse_absolute(input: &str) -> Result<Self, ParseError>
pub fn parse_relative(input: &str) -> Result<Self, ParseError>
pub fn as_str(&self) -> &str
Trait Implementations§
impl StructuralPartialEq for Url
Auto Trait Implementations§
impl Freeze for Url
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnwindSafe for Url
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more