Enum servo_url::origin::ImmutableOrigin
[−]
[src]
pub enum ImmutableOrigin {
Opaque(OpaqueOrigin),
Tuple(String, Host, u16),
}The origin of an URL
Variants
Opaque(OpaqueOrigin)A globally unique identifier
Tuple(String, Host, u16)Consists of the URL's scheme, host and port
Methods
impl ImmutableOrigin[src]
pub fn new(origin: Origin) -> ImmutableOrigin[src]
pub fn same_origin(&self, other: &MutableOrigin) -> bool[src]
pub fn same_origin_domain(&self, other: &MutableOrigin) -> bool[src]
pub fn new_opaque() -> ImmutableOrigin[src]
Creates a new opaque origin that is only equal to itself.
pub fn scheme(&self) -> Option<&str>[src]
pub fn host(&self) -> Option<&Host>[src]
pub fn port(&self) -> Option<u16>[src]
pub fn into_url_origin(self) -> Origin[src]
pub fn is_tuple(&self) -> bool[src]
Return whether this origin is a (scheme, host, port) tuple (as opposed to an opaque origin).
pub fn ascii_serialization(&self) -> String[src]
pub fn unicode_serialization(&self) -> String[src]
Trait Implementations
impl Clone for ImmutableOrigin[src]
fn clone(&self) -> ImmutableOrigin[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 Debug for ImmutableOrigin[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for ImmutableOrigin[src]
impl MallocSizeOf for ImmutableOrigin[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 PartialEq for ImmutableOrigin[src]
fn eq(&self, __arg_0: &ImmutableOrigin) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ImmutableOrigin) -> bool[src]
This method tests for !=.