pub fn replace_state<T: JsSerialize>(&self, state: T, title: &str, url: Option<&str>) -> Result< (), TODO > {
        js!{ @(no_return)
            @{self}.replaceState(@{state}, @{title}, @{url});
        };
        Ok(())
    }
/// Operates exactly like history.push_state() except that replace_state() modifies the current
/// history entry instead of creating a new one. Note that this doesn't prevent the creation of
/// a new entry in the global browser history.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_replaceState%28%29_method)
// https://html.spec.whatwg.org/#the-history-interface:dom-history-replacestate
Operates exactly like history.push_state() except that replace_state() modifies the current
history entry instead of creating a new one. Note that this doesn't prevent the creation of
a new entry in the global browser history.


Operates exactly like history . push_state () except that replace_state () modifies the current history entry instead of creating a new one . Note that this doesn ' t prevent the creation of a new entry in the global browser history .
pub fn replace_state<T: JsSerialize>(&self, state: T, title: &str, url: Option<&str>) -> Result< (), TODO > {
        js!{ @(no_return)
            @{self}.replaceState(@{state}, @{title}, @{url});
        };
        Ok(())
    }
pub fn replace_state < T : JsSerialize > ( & self , state : T , title : & str , url : Option < & str > ) -> Result < ( ) , TODO > { js ! { ( no_return ) { self } replaceState ( { state } { title } { url } ) } ; Ok ( ( ) ) }
Operates exactly like history.push_state() except that replace_state() modifies the current
history entry instead of creating a new one.
Operates exactly like history . push_state () except that replace_state () modifies the current history entry instead of creating a new one .
&self
state
T
title
&str
url
Option<&str>
&self
state
T
title
&str
url
Option<&str>