pub struct SharedElementState { /* private fields */ }Expand description
Identity and bounds animation shared by one or more elements.
Attach it with Modifier::shared_element.
When the node that owns the state changes location, or a different node
claims the same state, the painted element eases from the last bounds to the
new layout bounds. When several nodes claim one state in a frame, the last
painted one drives the transition and the others are not painted.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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