pub struct RouteMatch {
pub location: RouteLocation,
pub global_location: RouteLocation,
pub params: HashMap<String, String>,
pub consumed_segments: usize,
pub remainder: Vec<String>,
pub is_exact: bool,
}Expand description
Structured match data exposed to the active route subtree as route.
Fields§
§location: RouteLocationLocation as seen by the current router scope.
global_location: RouteLocationFull global application location.
params: HashMap<String, String>Named values captured from :param segments.
consumed_segments: usizeNumber of path segments consumed by the selected branch.
remainder: Vec<String>Remaining path tail left after the selected branch.
is_exact: boolWhether the selected branch consumed the entire scoped path.
Implementations§
Source§impl RouteMatch
impl RouteMatch
Sourcepub fn remainder_location(&self) -> RouteLocation
pub fn remainder_location(&self) -> RouteLocation
Converts the remainder into a RouteLocation for nested router input.
Trait Implementations§
Source§impl Clone for RouteMatch
impl Clone for RouteMatch
Source§impl Debug for RouteMatch
impl Debug for RouteMatch
Source§impl Default for RouteMatch
impl Default for RouteMatch
impl Eq for RouteMatch
Source§impl Interpolatable for RouteMatch
impl Interpolatable for RouteMatch
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl PartialEq for RouteMatch
impl PartialEq for RouteMatch
impl StructuralPartialEq for RouteMatch
Source§impl ToPaxValue for RouteMatch
impl ToPaxValue for RouteMatch
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 RouteMatch
impl RefUnwindSafe for RouteMatch
impl Send for RouteMatch
impl Sync for RouteMatch
impl Unpin for RouteMatch
impl UnsafeUnpin for RouteMatch
impl UnwindSafe for RouteMatch
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.