pub enum SpringType {
CriticallyDamped,
UnderDamped,
OverDamped,
}Expand description
The kind of spring solution that the SpringSimulation is using to
simulate the spring.
Variants§
CriticallyDamped
A spring that does not bounce and returns to its rest position in the shortest possible time.
UnderDamped
A spring that bounces.
OverDamped
A spring that does not bounce but takes longer to return to its rest
position than a CriticallyDamped one.
Trait Implementations§
Source§impl Clone for SpringType
impl Clone for SpringType
impl Copy for SpringType
Source§impl Debug for SpringType
impl Debug for SpringType
Source§impl Display for SpringType
impl Display for SpringType
impl Eq for SpringType
Source§impl PartialEq for SpringType
impl PartialEq for SpringType
impl StructuralPartialEq for SpringType
Auto Trait Implementations§
impl Forget for SpringType
impl Freeze for SpringType
impl Move for SpringType
impl RefUnwindSafe for SpringType
impl Send for SpringType
impl Sync for SpringType
impl Unpin for SpringType
impl UnsafeUnpin for SpringType
impl UnwindSafe for SpringType
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.