Skip to main content

DefaultTransitionDelegate

Struct DefaultTransitionDelegate 

Source
pub struct DefaultTransitionDelegate;
Expand description

The default implementation of TransitionDelegate that the Navigator will use if its Navigator::transition_delegate is not specified.

This transition delegate follows two rules. Firstly, all the entering routes are placed on top of the exiting routes if they are at the same location. Secondly, the top most route will always transition with an animated transition. All the other routes below will either be completed with AnyRoute::current_result or added without an animated transition.

Implementations§

Source§

impl DefaultTransitionDelegate

Source

pub fn new() -> DefaultTransitionDelegate

Creates a default transition delegate.

Trait Implementations§

Source§

impl Debug for DefaultTransitionDelegate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DefaultTransitionDelegate

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl TransitionDelegate for DefaultTransitionDelegate

Source§

fn resolve( &self, app: &mut App, new_page_route_history: &[Handle<RouteEntry>], location_to_exiting_page_route: &HashMap<Option<Handle<RouteEntry>>, Handle<RouteEntry>>, page_route_to_pageless_routes: &HashMap<Option<Handle<RouteEntry>>, Vec<Handle<RouteEntry>>>, ) -> Vec<Handle<RouteEntry>>

A method that will be called by the Navigator to decide how routes transition in or out of the screen when Navigator::pages is updated. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,