pub struct AnyPageRoute { /* private fields */ }Expand description
Erased PageRoute: what Dart’s route is PageRoute produces.
Implementations§
Source§impl AnyPageRoute
impl AnyPageRoute
Sourcepub fn upgrade(self, app: &App) -> Option<Retained<AnyPageRoute>>
pub fn upgrade(self, app: &App) -> Option<Retained<AnyPageRoute>>
A reference while something still keeps the object, None once it is freed or
its last keeper has let go; see Handle::upgrade.
Sourcepub fn keep(self, app: &App) -> Retained<AnyPageRoute>
pub fn keep(self, app: &App) -> Retained<AnyPageRoute>
A reference to an object something is known to keep; see
Handle::keep.
Source§impl AnyPageRoute
impl AnyPageRoute
Sourcepub fn as_modal_route(self) -> AnyModalRoute
pub fn as_modal_route(self) -> AnyModalRoute
This page route as the erased AnyModalRoute.
Trait Implementations§
Source§impl Clone for AnyPageRoute
impl Clone for AnyPageRoute
impl Copy for AnyPageRoute
Source§impl Debug for AnyPageRoute
impl Debug for AnyPageRoute
impl Eq for AnyPageRoute
Source§impl From<AnyPageRoute> for AnyRoute
A kept page route as a [RouteRef] or a [ModalRouteRef], through
Retained::erase: Dart’s upcast.
impl From<AnyPageRoute> for AnyRoute
A kept page route as a [RouteRef] or a [ModalRouteRef], through
Retained::erase: Dart’s upcast.
Source§fn from(route: AnyPageRoute) -> AnyRoute
fn from(route: AnyPageRoute) -> AnyRoute
Converts to this type from the input type.
Source§impl From<AnyPageRoute> for AnyModalRoute
impl From<AnyPageRoute> for AnyModalRoute
Source§fn from(route: AnyPageRoute) -> AnyModalRoute
fn from(route: AnyPageRoute) -> AnyModalRoute
Converts to this type from the input type.
Source§impl From<AnyPageRoute> for HandleId
impl From<AnyPageRoute> for HandleId
Source§fn from(handle: AnyPageRoute) -> HandleId
fn from(handle: AnyPageRoute) -> HandleId
Converts to this type from the input type.
Source§impl<Leaf: PageRoute> From<Handle<Leaf>> for AnyPageRoute
impl<Leaf: PageRoute> From<Handle<Leaf>> for AnyPageRoute
Source§fn from(handle: Handle<Leaf>) -> AnyPageRoute
fn from(handle: Handle<Leaf>) -> AnyPageRoute
Converts to this type from the input type.
Source§impl Hash for AnyPageRoute
impl Hash for AnyPageRoute
Source§impl PartialEq for AnyPageRoute
impl PartialEq for AnyPageRoute
Source§impl PartialEq<AnyPageRoute> for &Retained<AnyPageRoute>
impl PartialEq<AnyPageRoute> for &Retained<AnyPageRoute>
Auto Trait Implementations§
impl Forget for AnyPageRoute
impl Freeze for AnyPageRoute
impl Move for AnyPageRoute
impl RefUnwindSafe for AnyPageRoute
impl Send for AnyPageRoute
impl Sync for AnyPageRoute
impl Unpin for AnyPageRoute
impl UnsafeUnpin for AnyPageRoutewhere
NonZeroU32Inner: UnsafeUnpin,
&'static PageRouteVTable: UnsafeUnpin,
impl UnwindSafe for AnyPageRoute
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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.