Struct servo_url::ServoUrl
[−]
[src]
pub struct ServoUrl(_);
Methods
impl ServoUrl[src]
pub fn from_url(url: Url) -> Self[src]
pub fn parse_with_base(
base: Option<&Self>,
input: &str
) -> Result<Self, ParseError>[src]
base: Option<&Self>,
input: &str
) -> Result<Self, ParseError>
pub fn into_string(self) -> String[src]
pub fn into_url(self) -> Url[src]
pub fn as_url(&self) -> &Url[src]
pub fn parse(input: &str) -> Result<Self, ParseError>[src]
pub fn cannot_be_a_base(&self) -> bool[src]
pub fn domain(&self) -> Option<&str>[src]
pub fn fragment(&self) -> Option<&str>[src]
pub fn path(&self) -> &str[src]
pub fn origin(&self) -> ImmutableOrigin[src]
pub fn scheme(&self) -> &str[src]
pub fn is_secure_scheme(&self) -> bool[src]
pub fn is_chrome(&self) -> bool[src]
pub fn as_str(&self) -> &str[src]
pub fn as_mut_url(&mut self) -> &mut Url[src]
pub fn set_username(&mut self, user: &str) -> Result<(), ()>[src]
pub fn set_ip_host(&mut self, addr: IpAddr) -> Result<(), ()>[src]
pub fn set_password(&mut self, pass: Option<&str>) -> Result<(), ()>[src]
pub fn set_fragment(&mut self, fragment: Option<&str>)[src]
pub fn username(&self) -> &str[src]
pub fn password(&self) -> Option<&str>[src]
pub fn to_file_path(&self) -> Result<PathBuf, ()>[src]
pub fn host(&self) -> Option<Host<&str>>[src]
pub fn host_str(&self) -> Option<&str>[src]
pub fn port(&self) -> Option<u16>[src]
pub fn port_or_known_default(&self) -> Option<u16>[src]
pub fn join(&self, input: &str) -> Result<ServoUrl, ParseError>[src]
pub fn path_segments(&self) -> Option<Split<char>>[src]
pub fn query(&self) -> Option<&str>[src]
pub fn from_file_path<P: AsRef<Path>>(path: P) -> Result<Self, ()>[src]
Trait Implementations
impl Clone for ServoUrl[src]
fn clone(&self) -> ServoUrl[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for ServoUrl[src]
impl Hash for ServoUrl[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl MallocSizeOf for ServoUrl[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl Ord for ServoUrl[src]
fn cmp(&self, __arg_0: &ServoUrl) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialEq for ServoUrl[src]
fn eq(&self, __arg_0: &ServoUrl) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ServoUrl) -> bool[src]
This method tests for !=.
impl PartialOrd for ServoUrl[src]
fn partial_cmp(&self, __arg_0: &ServoUrl) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &ServoUrl) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &ServoUrl) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &ServoUrl) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &ServoUrl) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Display for ServoUrl[src]
fn fmt(&self, formatter: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Debug for ServoUrl[src]
fn fmt(&self, formatter: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Index<RangeFull> for ServoUrl[src]
type Output = str
The returned type after indexing.
fn index(&self, _: RangeFull) -> &str[src]
Performs the indexing (container[index]) operation.
impl Index<RangeFrom<Position>> for ServoUrl[src]
type Output = str
The returned type after indexing.
fn index(&self, range: RangeFrom<Position>) -> &str[src]
Performs the indexing (container[index]) operation.
impl Index<RangeTo<Position>> for ServoUrl[src]
type Output = str
The returned type after indexing.
fn index(&self, range: RangeTo<Position>) -> &str[src]
Performs the indexing (container[index]) operation.
impl Index<Range<Position>> for ServoUrl[src]
type Output = str
The returned type after indexing.
fn index(&self, range: Range<Position>) -> &str[src]
Performs the indexing (container[index]) operation.
impl From<Url> for ServoUrl[src]
impl Serialize for ServoUrl[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for ServoUrl[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more