[][src]Struct servo_url::ServoUrl

pub struct ServoUrl(Arc<Url>);

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]

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 PartialOrd<ServoUrl> for ServoUrl[src]

impl PartialEq<ServoUrl> for ServoUrl[src]

impl From<Url> for ServoUrl[src]

impl Clone for ServoUrl[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for ServoUrl[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Eq for ServoUrl[src]

impl Display for ServoUrl[src]

impl Debug for ServoUrl[src]

impl Hash for ServoUrl[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Index<RangeFull> for ServoUrl[src]

type Output = str

The returned type after indexing.

impl Index<RangeFrom<Position>> for ServoUrl[src]

type Output = str

The returned type after indexing.

impl Index<RangeTo<Position>> for ServoUrl[src]

type Output = str

The returned type after indexing.

impl Index<Range<Position>> for ServoUrl[src]

type Output = str

The returned type after indexing.

impl MallocSizeOf for ServoUrl[src]

impl<'de> Deserialize<'de> for ServoUrl[src]

fn deserialize_in_place<D>(
    deserializer: D,
    place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

Deserializes a value into self from the given Deserializer. Read more

impl Serialize for ServoUrl[src]

Auto Trait Implementations

impl Send for ServoUrl

impl Sync for ServoUrl

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T[src]

impl<T> Same for T[src]

type Output = T

Should always be Self

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]