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§fn add(self, other: Self) -> Self
fn add(self, other: Self) -> Self
Combines two exit transitions, mirroring Compose’s
ExitTransition.plus: the resulting transition applies every effect
of both operands. The left-hand animation spec wins when both sides
carry one.
Source§type Output = ExitTransition
type Output = ExitTransition
The resulting type after applying the
+ operator.Source§impl Clone for ExitTransition
impl Clone for ExitTransition
Source§fn clone(&self) -> ExitTransition
fn clone(&self) -> ExitTransition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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