pub struct EnterTransition { /* private fields */ }Expand description
Defines how an AnimatedVisibility content appears.
Mirrors Jetpack Compose’s EnterTransition. Transitions are combined
with +, like Compose’s fadeIn() + slideInVertically().
Implementations§
Source§impl EnterTransition
impl EnterTransition
Sourcepub fn none() -> Self
pub fn none() -> Self
An empty enter transition: content appears without any effect.
Mirrors Jetpack Compose: EnterTransition.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. In Compose the spec
is a parameter of each transition factory (e.g.
fadeIn(animationSpec = tween(300))); here it is a builder method:
fade_in().with_animation(tween(300, Easing::LinearEasing)).
Trait Implementations§
Source§impl Add for EnterTransition
impl Add for EnterTransition
Source§fn add(self, other: Self) -> Self
fn add(self, other: Self) -> Self
Combines two enter transitions, mirroring Compose’s
EnterTransition.plus: the resulting transition applies every effect
of both operands. The left-hand animation spec wins when both sides
carry one.
Source§type Output = EnterTransition
type Output = EnterTransition
The resulting type after applying the
+ operator.Source§impl Clone for EnterTransition
impl Clone for EnterTransition
Source§fn clone(&self) -> EnterTransition
fn clone(&self) -> EnterTransition
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 EnterTransition
Source§impl Debug for EnterTransition
impl Debug for EnterTransition
Source§impl PartialEq for EnterTransition
impl PartialEq for EnterTransition
impl StructuralPartialEq for EnterTransition
Auto Trait Implementations§
impl Freeze for EnterTransition
impl RefUnwindSafe for EnterTransition
impl Send for EnterTransition
impl Sync for EnterTransition
impl Unpin for EnterTransition
impl UnsafeUnpin for EnterTransition
impl UnwindSafe for EnterTransition
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