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.

(JavaScript docs)

Methods

impl Location
[src]

The entire URL.

(JavaScript docs)

Returns a String containing a '#' followed by the fragment identifier of the URL. The fragment is not percent-decoded.

(JavaScript docs)

Trait Implementations

impl Debug for Location
[src]

Formats the value using the given formatter.

impl Clone for Location
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsRef<Reference> for Location
[src]

Performs the conversion.

impl<T: TryInto<Reference>> TryFrom<T> for Location where
    T::Error: Into<Box<Error>>, 
[src]

The type returned in the event of a conversion error.

Performs the conversion.