pub struct SharedElementTransition {
pub source_rect: Rect,
pub target_rect: Rect,
pub animation: LayoutAnimation,
}Expand description
Shared element transition between two views.
Animates an element from a source rect to a target rect, useful for cross-view hero transitions.
Fields§
§source_rect: RectSource rect (where the element was).
target_rect: RectTarget rect (where the element is going).
animation: LayoutAnimationThe underlying animation.
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