pub struct ExitTransition { /* private fields */ }Expand description
Defines how an AnimatedVisibility content disappears.
Mirrors Jetpack Compose’s ExitTransition. Transitions are combined
with +, like Compose’s fadeOut() + slideOutVertically().
Implementations§
Source§impl ExitTransition
impl ExitTransition
Sourcepub fn none() -> Self
pub fn none() -> Self
An empty exit transition: content disappears without any effect.
Mirrors Jetpack Compose: ExitTransition.None.
Sourcepub fn with_animation(self, animation: AnimationType) -> Self
pub fn with_animation(self, animation: AnimationType) -> Self
Use a custom animation spec for this transition (see
EnterTransition::with_animation).
Trait Implementations§
Source§impl Add for ExitTransition
impl Add for ExitTransition
Source§impl Clone for ExitTransition
impl Clone for ExitTransition
impl Copy for ExitTransition
Source§impl Debug for ExitTransition
impl Debug for ExitTransition
Source§impl PartialEq for ExitTransition
impl PartialEq for ExitTransition
impl StructuralPartialEq for ExitTransition
Auto Trait Implementations§
impl Freeze for ExitTransition
impl RefUnwindSafe for ExitTransition
impl Send for ExitTransition
impl Sync for ExitTransition
impl Unpin for ExitTransition
impl UnsafeUnpin for ExitTransition
impl UnwindSafe for ExitTransition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more