pub struct RouteLocation {
pub path_segments: Vec<String>,
pub query: HashMap<String, Vec<String>>,
pub fragment: Option<String>,
}Expand description
Structured application location shared across platforms.
On web targets this is serialized to and from window.location, while on
non-web targets it remains a platform-agnostic route state model.
Fields§
§path_segments: Vec<String>Decoded path segments, with / represented by an empty vector.
query: HashMap<String, Vec<String>>Query-string values keyed by parameter name, preserving repeated keys.
fragment: Option<String>Optional fragment without the leading #.
Implementations§
Source§impl RouteLocation
impl RouteLocation
Trait Implementations§
Source§impl Clone for RouteLocation
impl Clone for RouteLocation
Source§impl Debug for RouteLocation
impl Debug for RouteLocation
Source§impl Default for RouteLocation
impl Default for RouteLocation
impl Eq for RouteLocation
Source§impl From<&RouteChangeInterruptArgs> for RouteLocation
impl From<&RouteChangeInterruptArgs> for RouteLocation
Source§fn from(value: &RouteChangeInterruptArgs) -> Self
fn from(value: &RouteChangeInterruptArgs) -> Self
Converts to this type from the input type.
Source§impl From<RouteChangeInterruptArgs> for RouteLocation
impl From<RouteChangeInterruptArgs> for RouteLocation
Source§fn from(value: RouteChangeInterruptArgs) -> Self
fn from(value: RouteChangeInterruptArgs) -> Self
Converts to this type from the input type.
Source§impl Interpolatable for RouteLocation
impl Interpolatable for RouteLocation
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl PartialEq for RouteLocation
impl PartialEq for RouteLocation
impl StructuralPartialEq for RouteLocation
Source§impl ToPaxValue for RouteLocation
impl ToPaxValue for RouteLocation
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Source§fn nested_properties(&self) -> Vec<UntypedProperty>
fn nested_properties(&self) -> Vec<UntypedProperty>
Live properties read when snapshotting a compound value for PAXEL.
Adapters observe these as well as the containing property.
Source§fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
Converts against owner-thread graph views, including nested generated
property fields. Requires an entered property graph for shared fields.
Ordinary
Self::to_pax_value reads published value snapshots.Auto Trait Implementations§
impl Freeze for RouteLocation
impl RefUnwindSafe for RouteLocation
impl Send for RouteLocation
impl Sync for RouteLocation
impl Unpin for RouteLocation
impl UnsafeUnpin for RouteLocation
impl UnwindSafe for RouteLocation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.