Skip to main content

TransitionRouteData

Struct TransitionRouteData 

Source
pub struct TransitionRouteData {
    pub will_dispose_animation_controller: bool,
    /* private fields */
}
Expand description

The fields Dart’s TransitionRoute declares; every transition route carries this bag under the field transition_route.

Fields§

§will_dispose_animation_controller: bool

Whether to takeover the controller created by create_animation_controller.

If true, this route will call AnimationController::dispose when the controller is no longer needed. If false, the controller should be disposed by whoever owned it.

It defaults to true.

Implementations§

Source§

impl TransitionRouteData

Source

pub fn new(app: &mut App) -> TransitionRouteData

The bag of a freshly created transition route.

Auto Trait Implementations§

§

impl !RefUnwindSafe for TransitionRouteData

§

impl !Send for TransitionRouteData

§

impl !Sync for TransitionRouteData

§

impl !UnwindSafe for TransitionRouteData

§

impl Forget for TransitionRouteData

§

impl Freeze for TransitionRouteData
where *const RcInner<Shared<Option<Rc<dyn Any>>>> is !null: Freeze, PhantomData<RcInner<Shared<Option<Rc<dyn Any>>>>>: Freeze, NonZero<u32>: Freeze, &'static AnimationVTable<f64>: Freeze, *const RcInner<Keep> is !null: Freeze, PhantomData<RcInner<Keep>>: Freeze, PhantomData<fn() -> AnimationController>: Freeze, PhantomData<fn() -> ProxyAnimation>: Freeze, *const RcInner<dyn Any> is !null: Freeze, PhantomData<RcInner<dyn Any>>: Freeze, *const RcInner<dyn Fn(&mut App)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,

§

impl Move for TransitionRouteData

§

impl Unpin for TransitionRouteData
where Rc<Shared<Option<Rc<dyn Any>>>>: Unpin, NonZero<u32>: Unpin, &'static AnimationVTable<f64>: Unpin, Rc<Keep>: Unpin, Rc<dyn Any>: Unpin, Rc<dyn Fn(&mut App)>: Unpin,

§

impl UnsafeUnpin for TransitionRouteData
where *const RcInner<Shared<Option<Rc<dyn Any>>>> is !null: UnsafeUnpin, PhantomData<RcInner<Shared<Option<Rc<dyn Any>>>>>: UnsafeUnpin, NonZeroU32Inner: UnsafeUnpin, &'static AnimationVTable<f64>: UnsafeUnpin, *const RcInner<Keep> is !null: UnsafeUnpin, PhantomData<RcInner<Keep>>: UnsafeUnpin, PhantomData<fn() -> AnimationController>: UnsafeUnpin, PhantomData<fn() -> ProxyAnimation>: UnsafeUnpin, *const RcInner<dyn Any> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Any>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,

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>