pub struct RouteCard {
pub path: Property<String>,
pub default: Property<bool>,
pub edge: Property<RouteCardEdge>,
pub duration: Property<Duration>,
pub scrim_opacity: Property<Opacity>,
pub curve: Property<RouteCardCurve>,
pub _projected_children_count: Property<usize>,
}Expand description
Declarative route branch presented as a card over the current route.
RouteCard is consumed by a parent Router like Route, but the
presentation behavior is owned by this component shell. It retains the
previously mounted branch underneath so the incoming or outgoing card slides
over stable content while a black scrim fades over the retained branch. The
route’s own contents may still declare additional element or component
lifecycle transitions.
Fields§
§path: Property<String>Static route pattern, e.g. /details/:id.
default: Property<bool>Fallback card branch used when no path branch matches.
edge: Property<RouteCardEdge>Edge used by the generated card enter/exit transition.
duration: Property<Duration>Duration for the generated card enter/exit transition.
scrim_opacity: Property<Opacity>Maximum opacity for the black scrim over the retained background.
Unitless values are normalized alpha (0.3 is 30%); percentages such
as 30% are also supported.
curve: Property<RouteCardCurve>Reserved easing tuning for the card enter/exit transition.
_projected_children_count: Property<usize>Implementations§
Trait Implementations§
Source§impl CoercionRules for RouteCard
impl CoercionRules for RouteCard
Source§fn is_identity_roundtrip() -> bool
fn is_identity_roundtrip() -> bool
Self preserves the semantics of converting that clone
through ToPaxValue and back with try_coerce. Read moreSource§fn try_coerce(value: PaxValue) -> Result<RouteCard, String>
fn try_coerce(value: PaxValue) -> Result<RouteCard, String>
value into Self.Source§fn allows_singleton_stack() -> bool
fn allows_singleton_stack() -> bool
Source§impl<'de> Deserialize<'de> for RouteCard
impl<'de> Deserialize<'de> for RouteCard
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RouteCard, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RouteCard, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl HelperFunctions for RouteCard
impl HelperFunctions for RouteCard
Source§fn register_all_functions()
fn register_all_functions()
impl ImplToFromPaxAny for RouteCard
Source§impl Interpolatable for RouteCard
impl Interpolatable for RouteCard
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl Serialize for RouteCard
impl Serialize for RouteCard
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl ToPaxValue for RouteCard
impl ToPaxValue for RouteCard
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
PaxValue.Source§fn nested_properties(&self) -> Vec<UntypedProperty>
fn nested_properties(&self) -> Vec<UntypedProperty>
Source§fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
Self::to_pax_value reads published value snapshots.Auto Trait Implementations§
impl Freeze for RouteCard
impl RefUnwindSafe for RouteCard
impl Send for RouteCard
impl Sync for RouteCard
impl Unpin for RouteCard
impl UnsafeUnpin for RouteCard
impl UnwindSafe for RouteCard
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Source§impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
Source§fn to_pax_any(self) -> PaxAny
fn to_pax_any(self) -> PaxAny
PaxAny.Source§fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
PaxAny.