pub enum UrlComponent {
Scheme,
Host,
Port,
User,
Pass,
Path,
Query,
Fragment,
}Expand description
A PHP_URL_* selector for parse_url($url, $component).
PHP throws a ValueError for any other integer; the enum makes that
unrepresentable (a recorded deviation).
Variants§
Scheme
PHP_URL_SCHEME (0)
Host
PHP_URL_HOST (1)
Port
PHP_URL_PORT (2)
User
PHP_URL_USER (3)
Pass
PHP_URL_PASS (4)
Path
PHP_URL_PATH (5)
Query
PHP_URL_QUERY (6)
Fragment
PHP_URL_FRAGMENT (7)
Implementations§
Trait Implementations§
impl Copy for Component
impl Eq for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Forget for Component
impl Freeze for Component
impl Move for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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.