Struct MemoryHistory
pub struct MemoryHistory { /* private fields */ }
Expand description
Implementations§
§impl MemoryHistory
impl MemoryHistory
pub fn new() -> MemoryHistory
pub fn new() -> MemoryHistory
Creates a new MemoryHistory
with a default entry of ‘/’.
pub 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§
§impl Clone for MemoryHistory
impl Clone for MemoryHistory
§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 more§impl Debug for MemoryHistory
impl Debug for MemoryHistory
§impl Default for MemoryHistory
impl Default for MemoryHistory
§fn default() -> MemoryHistory
fn default() -> MemoryHistory
Returns the “default value” for a type. Read more
§impl From<MemoryHistory> for AnyHistory
impl From<MemoryHistory> for AnyHistory
§fn from(m: MemoryHistory) -> AnyHistory
fn from(m: MemoryHistory) -> AnyHistory
Converts to this type from the input type.
§impl History for MemoryHistory
impl History for MemoryHistory
§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.§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.
§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.
§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,
Same as
.push()
but affix the queries to the end of the route.§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,
Same as
.replace()
but affix the queries to the end of the route.§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,
Same as
.push_with_state()
but affix the queries to the end of the route.§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,
Same as
.replace_with_state()
but affix the queries to the end of the route.§impl PartialEq for MemoryHistory
impl PartialEq for MemoryHistory
Auto Trait Implementations§
impl Freeze for MemoryHistory
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.