pub struct Bounce(/* private fields */);Expand description
How far a spring overshoots, 0 (glides in, no overshoot) to
MAX_BOUNCE (rings a while): the one number that shapes a spring
besides its duration. A bounce b is a damping ratio of 1 - b
(SwiftUI’s Spring(duration:bounce:)).
Held in ten-thousandths in two bytes, because it rides in
Transition, which rides inline in every NodeSpec — and the two
bytes of padding Transition had spare are all the room there is
(node_spec_stays_small). The niche keeps Option<Bounce> at two.
Implementations§
Trait Implementations§
impl Copy for Bounce
impl Eq for Bounce
impl StructuralPartialEq for Bounce
Auto Trait Implementations§
impl Freeze for Bounce
impl RefUnwindSafe for Bounce
impl Send for Bounce
impl Sync for Bounce
impl Unpin for Bounce
impl UnsafeUnpin for Bounce
impl UnwindSafe for Bounce
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.