pub struct SizeAnimation {
pub duration: f32,
pub curve: Curve,
pub alignment: Alignment,
pub clip: bool,
}Expand description
How an AnimatedSize moves: over how long, along which curve, where the child sits in
the box on the way, and whether what spills out of it is cut.
Fields§
§duration: f32Seconds from one size to the next.
curve: CurveThe easing of that move.
alignment: AlignmentWhere the child sits in a box that is not its size yet.
clip: boolWhether the child is cut to the box while it does not fit. On by default, as the
reference’s Clip.hardEdge.
Trait Implementations§
Source§impl Clone for SizeAnimation
impl Clone for SizeAnimation
Auto Trait Implementations§
impl Freeze for SizeAnimation
impl RefUnwindSafe for SizeAnimation
impl Send for SizeAnimation
impl Sync for SizeAnimation
impl Unpin for SizeAnimation
impl UnsafeUnpin for SizeAnimation
impl UnwindSafe for SizeAnimation
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