pub struct Spring { /* private fields */ }Expand description
Scalar damped spring.
Implementations§
Source§impl Spring
impl Spring
Sourcepub fn is_settled(&self) -> bool
pub fn is_settled(&self) -> bool
Whether the spring has settled.
Sourcepub fn set_target(&self, target: f32)
pub fn set_target(&self, target: f32)
Set a target.
Trait Implementations§
Source§impl FromWasmAbi for Spring
impl FromWasmAbi for Spring
Source§impl IntoWasmAbi for Spring
impl IntoWasmAbi for Spring
Source§impl LongRefFromWasmAbi for Spring
impl LongRefFromWasmAbi for Spring
Source§impl OptionFromWasmAbi for Spring
impl OptionFromWasmAbi for Spring
Source§impl OptionIntoWasmAbi for Spring
impl OptionIntoWasmAbi for Spring
Source§impl RefFromWasmAbi for Spring
impl RefFromWasmAbi for Spring
Source§type Abi = WasmPtr<WasmRefCell<Spring>>
type Abi = WasmPtr<WasmRefCell<Spring>>
The Wasm ABI type references to
Self are recovered from.Source§impl RefMutFromWasmAbi for Spring
impl RefMutFromWasmAbi for Spring
Source§impl TryFromJsValue for Spring
impl TryFromJsValue for Spring
Source§impl VectorFromWasmAbi for Spring
impl VectorFromWasmAbi for Spring
Source§impl VectorIntoWasmAbi for Spring
impl VectorIntoWasmAbi for Spring
impl SupportsConstructor for Spring
impl SupportsInstanceProperty for Spring
impl SupportsStaticProperty for Spring
Auto Trait Implementations§
impl Freeze for Spring
impl RefUnwindSafe for Spring
impl Send for Spring
impl Sync for Spring
impl Unpin for Spring
impl UnsafeUnpin for Spring
impl UnwindSafe for Spring
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.