Enum url::SchemeData
source · pub enum SchemeData {
Relative(RelativeSchemeData),
NonRelative(String),
}
Expand description
The components of the URL whose representation depends on where the scheme is relative.
Variants§
Relative(RelativeSchemeData)
Components for URLs in a relative scheme such as HTTP.
NonRelative(String)
No further structure is assumed for non-relative schemes such as data
and mailto
.
This is a single percent-encoded string, whose interpretation depends on the scheme.
Percent encoded strings are within the ASCII range.
Trait Implementations§
source§impl Clone for SchemeData
impl Clone for SchemeData
source§fn clone(&self) -> SchemeData
fn clone(&self) -> SchemeData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SchemeData
impl Debug for SchemeData
source§impl Display for SchemeData
impl Display for SchemeData
source§impl Hash for SchemeData
impl Hash for SchemeData
source§impl Ord for SchemeData
impl Ord for SchemeData
source§fn cmp(&self, other: &SchemeData) -> Ordering
fn cmp(&self, other: &SchemeData) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SchemeData
impl PartialEq for SchemeData
source§fn eq(&self, other: &SchemeData) -> bool
fn eq(&self, other: &SchemeData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SchemeData
impl PartialOrd for SchemeData
source§fn partial_cmp(&self, other: &SchemeData) -> Option<Ordering>
fn partial_cmp(&self, other: &SchemeData) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SchemeData
impl StructuralPartialEq for SchemeData
Auto Trait Implementations§
impl Freeze for SchemeData
impl RefUnwindSafe for SchemeData
impl Send for SchemeData
impl Sync for SchemeData
impl Unpin for SchemeData
impl UnwindSafe for SchemeData
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)