Struct stdweb::web::Location
[−]
[src]
pub struct Location(_);
The Location
interface represents the location (URL) of the object it
is linked to. Changes done on it are reflected on the object it relates
to. Both the Document and Window
interface have such a linked Location
, accessible via Document::location
and Window::location respectively.
Methods
impl Location
[src]
fn href(&self) -> String
The entire URL.
fn hash(&self) -> String
Returns a String
containing a '#' followed by the fragment
identifier of the URL. The fragment is not percent-decoded.
Trait Implementations
impl Debug for Location
[src]
impl Clone for Location
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for Location
[src]
impl<T: TryInto<Reference>> TryFrom<T> for Location where
T::Error: Into<Box<Error>>,
[src]
T::Error: Into<Box<Error>>,