pub struct Url<'a> { /* private fields */ }Expand description
A URL split by PHP’s parse_url (php_url_parse_ex2 in
ext/standard/url.c).
Components borrow from the input. PHP replaces ASCII control characters
(iscntrl: 0x00–0x1F and 0x7F) in every component with _; the
accessors do the same, allocating only when a component contains one.
Components are byte strings because PHP strings are: when the input is
valid UTF-8, so is every component (the parser only splits at ASCII
bytes).
Implementations§
Trait Implementations§
impl<'a> Eq for Url<'a>
impl<'a> StructuralPartialEq for Url<'a>
Auto Trait Implementations§
impl<'a> Forget for Url<'a>
impl<'a> Freeze for Url<'a>
impl<'a> Move for Url<'a>
impl<'a> RefUnwindSafe for Url<'a>
impl<'a> Send for Url<'a>
impl<'a> Sync for Url<'a>
impl<'a> Unpin for Url<'a>
impl<'a> UnsafeUnpin for Url<'a>
impl<'a> UnwindSafe for Url<'a>
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.