pub struct SurfaceTransition { /* private fields */ }Expand description
The one progress value a surface’s arrival and departure share: 0 is off its edge and transparent, 1 is
settled. Opening runs it to 1; leave runs it back to 0, so the exit is the entrance
reversed rather than a second animation that has to be kept in step with the first.
A backend that can hold a closing surface on screen for duration is what makes the exit
half visible; one that cannot simply never calls leave, and the surface disappears as it always did.
Implementations§
Source§impl SurfaceTransition
impl SurfaceTransition
Sourcepub fn enter() -> Self
pub fn enter() -> Self
A transition already on its way in. Constructed away from its goal and retargeted at once, never at
it: an Animated born settled registers with no ticker, so nothing would schedule the frames that carry
it in.
Trait Implementations§
Source§impl Clone for SurfaceTransition
impl Clone for SurfaceTransition
Source§fn clone(&self) -> SurfaceTransition
fn clone(&self) -> SurfaceTransition
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 !RefUnwindSafe for SurfaceTransition
impl !Send for SurfaceTransition
impl !Sync for SurfaceTransition
impl !UnwindSafe for SurfaceTransition
impl Freeze for SurfaceTransition
impl Unpin for SurfaceTransition
impl UnsafeUnpin for SurfaceTransition
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