pub struct BaseUrl { /* private fields */ }
Expand description
Url that’s guaranteed safe to use as a base
Implementations§
Source§impl BaseUrl
impl BaseUrl
pub fn parse(url: &str) -> Result<Self>
pub fn url(&self) -> &Url
pub fn into_inner(self) -> Url
pub fn join(&self, input: &str) -> BaseUrl
pub fn path_segments_mut(&mut self) -> PathSegmentsMut<'_>
pub fn query_pairs_mut(&mut self) -> Serializer<'_, UrlQuery<'_>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BaseUrl
impl RefUnwindSafe for BaseUrl
impl Send for BaseUrl
impl Sync for BaseUrl
impl Unpin for BaseUrl
impl UnwindSafe for BaseUrl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more