pub struct ViewTransitionSnapshot {
pub name: String,
pub old_bounds: Rect,
pub new_bounds: Rect,
pub start_time_ms: f64,
pub duration_ms: f32,
pub is_finished: bool,
}Expand description
A captured snapshot pairing old and new layout bounds for an element with view-transition-name.
Fields§
§name: String§old_bounds: Rect§new_bounds: Rect§start_time_ms: f64§duration_ms: f32§is_finished: boolTrait Implementations§
Source§impl Clone for ViewTransitionSnapshot
impl Clone for ViewTransitionSnapshot
Source§impl Debug for ViewTransitionSnapshot
impl Debug for ViewTransitionSnapshot
Source§impl PartialEq for ViewTransitionSnapshot
impl PartialEq for ViewTransitionSnapshot
impl StructuralPartialEq for ViewTransitionSnapshot
Auto Trait Implementations§
impl Forget for ViewTransitionSnapshot
impl Freeze for ViewTransitionSnapshot
impl Move for ViewTransitionSnapshot
impl RefUnwindSafe for ViewTransitionSnapshot
impl Send for ViewTransitionSnapshot
impl Sync for ViewTransitionSnapshot
impl Unpin for ViewTransitionSnapshot
impl UnsafeUnpin for ViewTransitionSnapshot
impl UnwindSafe for ViewTransitionSnapshot
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