pub struct ServoUrl(pub(crate) Arc<Url>);
Tuple Fields§
§0: Arc<Url>
Implementations§
source§impl ServoUrl
impl ServoUrl
pub fn from_url(url: Url) -> Self
pub fn parse_with_base( base: Option<&Self>, input: &str, ) -> Result<Self, ParseError>
pub fn into_string(self) -> String
pub fn into_url(self) -> Url
pub fn get_arc(&self) -> Arc<Url>
pub fn as_url(&self) -> &Url
pub fn parse(input: &str) -> Result<Self, ParseError>
pub fn cannot_be_a_base(&self) -> bool
pub fn domain(&self) -> Option<&str>
pub fn fragment(&self) -> Option<&str>
pub fn path(&self) -> &str
pub fn origin(&self) -> ImmutableOrigin
pub fn scheme(&self) -> &str
pub fn is_secure_scheme(&self) -> bool
sourcepub fn is_local_scheme(&self) -> bool
pub fn is_local_scheme(&self) -> bool
pub fn as_str(&self) -> &str
pub fn as_mut_url(&mut self) -> &mut Url
pub fn set_username(&mut self, user: &str) -> Result<(), UrlError>
pub fn set_ip_host(&mut self, addr: IpAddr) -> Result<(), UrlError>
pub fn set_password(&mut self, pass: Option<&str>) -> Result<(), UrlError>
pub fn set_fragment(&mut self, fragment: Option<&str>)
pub fn username(&self) -> &str
pub fn password(&self) -> Option<&str>
pub fn to_file_path(&self) -> Result<PathBuf, UrlError>
pub fn host(&self) -> Option<Host<&str>>
pub fn host_str(&self) -> Option<&str>
pub fn port(&self) -> Option<u16>
pub fn port_or_known_default(&self) -> Option<u16>
pub fn join(&self, input: &str) -> Result<ServoUrl, ParseError>
pub fn path_segments(&self) -> Option<Split<'_, char>>
pub fn query(&self) -> Option<&str>
pub fn from_file_path<P: AsRef<Path>>(path: P) -> Result<Self, UrlError>
sourcepub fn debug_compact(&self) -> impl Display + '_
pub fn debug_compact(&self) -> impl Display + '_
Return a non-standard shortened form of the URL. Mainly intended to be used for debug printing in a constrained space (e.g., thread names).
sourcepub fn is_potentially_trustworthy(&self) -> bool
pub fn is_potentially_trustworthy(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for ServoUrl
impl<'de> Deserialize<'de> for ServoUrl
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MallocSizeOf for ServoUrl
impl MallocSizeOf for ServoUrl
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl Ord for ServoUrl
impl Ord for ServoUrl
source§impl PartialEq for ServoUrl
impl PartialEq for ServoUrl
source§impl PartialOrd for ServoUrl
impl PartialOrd for ServoUrl
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 ServoUrl
impl StructuralPartialEq for ServoUrl
Auto Trait Implementations§
impl Freeze for ServoUrl
impl RefUnwindSafe for ServoUrl
impl Send for ServoUrl
impl Sync for ServoUrl
impl Unpin for ServoUrl
impl UnwindSafe for ServoUrl
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert