Struct yew_router::prelude::Location
pub struct Location { /* private fields */ }
Expand description
A history location.
This struct provides location information at the time [History::location
] is called.
Implementations§
§impl Location
impl Location
pub fn query<T>(&self) -> Result<T, HistoryError>where
T: DeserializeOwned,
pub fn query<T>(&self) -> Result<T, HistoryError>where
T: DeserializeOwned,
Returns the queries of current URL parsed as T
.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Location
impl !Send for Location
impl !Sync for Location
impl Unpin for Location
impl !UnwindSafe for Location
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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.