pub struct BadgeScope { /* private fields */ }Expand description
A Badge and its builder.
Implementations§
Source§impl BadgeScope
impl BadgeScope
Source§impl BadgeScope
impl BadgeScope
Source§impl BadgeScope
impl BadgeScope
Source§impl BadgeScope
impl BadgeScope
Sourcepub fn on_motion_finished(
self,
handler: impl FnMut(MotionFinished) + 'static,
) -> Self
pub fn on_motion_finished( self, handler: impl FnMut(MotionFinished) + 'static, ) -> Self
Runs once when this node’s size motion comes to rest, with the size it settled
at in dp. The node needs Modifier::motion for its size to move; without it
nothing is reported. A run interrupted by a newer size is not reported, only
the one that settles, and under reduced motion it arrives in the frame the
size changes in.
Trait Implementations§
Source§impl Drop for BadgeScope
impl Drop for BadgeScope
Auto Trait Implementations§
impl !RefUnwindSafe for BadgeScope
impl !Send for BadgeScope
impl !Sync for BadgeScope
impl !UnwindSafe for BadgeScope
impl Forget for BadgeScope
impl Freeze for BadgeScope
impl Move for BadgeScope
impl Unpin for BadgeScope
impl UnsafeUnpin for BadgeScope
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