pub struct CollectionTransition {
pub animation: Animation,
}Expand description
Environment request to animate reactive-collection membership changes.
While present in scope, reactive collections (ForEach / List) animate
membership changes: an item fades and grows in when it appears, and fades and
collapses out when it disappears, over animation, instead of popping
instantly.
A backend that supports collection transitions reads this from the environment when it renders a collection; backends without support ignore it (the collection still renders correctly, just without the transition).
Fields§
§animation: AnimationTiming curve for an item’s enter and exit.
Implementations§
Trait Implementations§
Source§impl Clone for CollectionTransition
impl Clone for CollectionTransition
Source§fn clone(&self) -> CollectionTransition
fn clone(&self) -> CollectionTransition
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 moreAuto Trait Implementations§
impl Freeze for CollectionTransition
impl RefUnwindSafe for CollectionTransition
impl Send for CollectionTransition
impl Sync for CollectionTransition
impl Unpin for CollectionTransition
impl UnsafeUnpin for CollectionTransition
impl UnwindSafe for CollectionTransition
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