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
[src]
The entire URL.
fn hash(&self) -> String
[src]
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]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter.
impl Clone for Location
[src]
fn clone(&self) -> Self
[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 AsRef<Reference> for Location
[src]
impl<R: TryInto<Reference>> TryFrom<R> for Location where
<R as TryInto<Reference>>::Error: Into<Box<Error>>,
[src]
<R as TryInto<Reference>>::Error: Into<Box<Error>>,