Struct gloo::history::MemoryHistory
source · pub struct MemoryHistory { /* private fields */ }
Available on crate feature
history
only.Expand description
Implementations§
source§impl MemoryHistory
impl MemoryHistory
sourcepub fn new() -> MemoryHistory
pub fn new() -> MemoryHistory
Creates a new MemoryHistory
with a default entry of ‘/’.
sourcepub fn with_entries<'a>(
entries: impl IntoIterator<Item = impl Into<Cow<'a, str>>>
) -> MemoryHistory
pub fn with_entries<'a>( entries: impl IntoIterator<Item = impl Into<Cow<'a, str>>> ) -> MemoryHistory
Creates a new MemoryHistory
with entries.
Trait Implementations§
source§impl Clone for MemoryHistory
impl Clone for MemoryHistory
source§fn clone(&self) -> MemoryHistory
fn clone(&self) -> MemoryHistory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MemoryHistory
impl Debug for MemoryHistory
source§impl Default for MemoryHistory
impl Default for MemoryHistory
source§fn default() -> MemoryHistory
fn default() -> MemoryHistory
Returns the “default value” for a type. Read more
source§impl From<MemoryHistory> for AnyHistory
impl From<MemoryHistory> for AnyHistory
source§fn from(m: MemoryHistory) -> AnyHistory
fn from(m: MemoryHistory) -> AnyHistory
Converts to this type from the input type.
source§impl History for MemoryHistory
impl History for MemoryHistory
source§fn push<'a>(&self, route: impl Into<Cow<'a, str>>)
fn push<'a>(&self, route: impl Into<Cow<'a, str>>)
Pushes a route entry with
None
being the state.source§fn replace<'a>(&self, route: impl Into<Cow<'a, str>>)
fn replace<'a>(&self, route: impl Into<Cow<'a, str>>)
Replaces the current history entry with provided route and
None
state.source§fn push_with_state<'a, T>(&self, route: impl Into<Cow<'a, str>>, state: T)where
T: 'static,
fn push_with_state<'a, T>(&self, route: impl Into<Cow<'a, str>>, state: T)where T: 'static,
Pushes a route entry with state.
source§fn replace_with_state<'a, T>(&self, route: impl Into<Cow<'a, str>>, state: T)where
T: 'static,
fn replace_with_state<'a, T>(&self, route: impl Into<Cow<'a, str>>, state: T)where T: 'static,
Replaces the current history entry with provided route and state.
source§fn push_with_query<'a, Q>(
&self,
route: impl Into<Cow<'a, str>>,
query: Q
) -> Result<(), <Q as ToQuery>::Error>where
Q: ToQuery,
fn push_with_query<'a, Q>( &self, route: impl Into<Cow<'a, str>>, query: Q ) -> Result<(), <Q as ToQuery>::Error>where Q: ToQuery,
Available on crate feature
query
only.Same as
.push()
but affix the queries to the end of the route.source§fn replace_with_query<'a, Q>(
&self,
route: impl Into<Cow<'a, str>>,
query: Q
) -> Result<(), <Q as ToQuery>::Error>where
Q: ToQuery,
fn replace_with_query<'a, Q>( &self, route: impl Into<Cow<'a, str>>, query: Q ) -> Result<(), <Q as ToQuery>::Error>where Q: ToQuery,
Available on crate feature
query
only.Same as
.replace()
but affix the queries to the end of the route.source§fn push_with_query_and_state<'a, Q, T>(
&self,
route: impl Into<Cow<'a, str>>,
query: Q,
state: T
) -> Result<(), <Q as ToQuery>::Error>where
Q: ToQuery,
T: 'static,
fn push_with_query_and_state<'a, Q, T>( &self, route: impl Into<Cow<'a, str>>, query: Q, state: T ) -> Result<(), <Q as ToQuery>::Error>where Q: ToQuery, T: 'static,
Available on crate feature
query
only.Same as
.push_with_state()
but affix the queries to the end of the route.source§fn replace_with_query_and_state<'a, Q, T>(
&self,
route: impl Into<Cow<'a, str>>,
query: Q,
state: T
) -> Result<(), <Q as ToQuery>::Error>where
Q: ToQuery,
T: 'static,
fn replace_with_query_and_state<'a, Q, T>( &self, route: impl Into<Cow<'a, str>>, query: Q, state: T ) -> Result<(), <Q as ToQuery>::Error>where Q: ToQuery, T: 'static,
Available on crate feature
query
only.Same as
.replace_with_state()
but affix the queries to the end of the route.source§impl PartialEq<MemoryHistory> for MemoryHistory
impl PartialEq<MemoryHistory> for MemoryHistory
source§fn eq(&self, rhs: &MemoryHistory) -> bool
fn eq(&self, rhs: &MemoryHistory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
impl !RefUnwindSafe for MemoryHistory
impl !Send for MemoryHistory
impl !Sync for MemoryHistory
impl Unpin for MemoryHistory
impl !UnwindSafe for MemoryHistory
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more