pub struct JsCompoundStateSpace {
pub inner: Arc<Mutex<CompoundStateSpace>>,
}Fields§
§inner: Arc<Mutex<CompoundStateSpace>>Implementations§
Source§impl JsCompoundStateSpace
impl JsCompoundStateSpace
pub fn sample(&self) -> Result<JsCompoundState, String>
pub fn distance( &self, state1: &JsCompoundState, state2: &JsCompoundState, ) -> f64
pub fn satisfies_bounds(&self, state: &JsCompoundState) -> bool
pub fn enforce_bounds(&self, state: &JsCompoundState) -> JsCompoundState
pub fn interpolate( &self, from: &JsCompoundState, to: &JsCompoundState, t: f64, ) -> JsCompoundState
pub fn get_longest_valid_segment_length(&self) -> f64
Trait Implementations§
Source§impl From<JsCompoundStateSpace> for JsValue
impl From<JsCompoundStateSpace> for JsValue
Source§fn from(value: JsCompoundStateSpace) -> Self
fn from(value: JsCompoundStateSpace) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for JsCompoundStateSpace
impl FromWasmAbi for JsCompoundStateSpace
Source§impl IntoWasmAbi for JsCompoundStateSpace
impl IntoWasmAbi for JsCompoundStateSpace
Source§impl RefFromWasmAbi for JsCompoundStateSpace
impl RefFromWasmAbi for JsCompoundStateSpace
Source§type Anchor = RcRef<JsCompoundStateSpace>
type Anchor = RcRef<JsCompoundStateSpace>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.impl SupportsConstructor for JsCompoundStateSpace
impl SupportsInstanceProperty for JsCompoundStateSpace
impl SupportsStaticProperty for JsCompoundStateSpace
Source§impl VectorFromWasmAbi for JsCompoundStateSpace
impl VectorFromWasmAbi for JsCompoundStateSpace
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[JsCompoundStateSpace]>
Source§impl VectorIntoWasmAbi for JsCompoundStateSpace
impl VectorIntoWasmAbi for JsCompoundStateSpace
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[JsCompoundStateSpace]>) -> Self::Abi
Source§impl WasmDescribeVector for JsCompoundStateSpace
impl WasmDescribeVector for JsCompoundStateSpace
Auto Trait Implementations§
impl !Send for JsCompoundStateSpace
impl !Sync for JsCompoundStateSpace
impl Freeze for JsCompoundStateSpace
impl RefUnwindSafe for JsCompoundStateSpace
impl Unpin for JsCompoundStateSpace
impl UnsafeUnpin for JsCompoundStateSpace
impl UnwindSafe for JsCompoundStateSpace
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> 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.