pub struct JsCompoundState {
pub inner: Arc<CompoundState>,
}Fields§
§inner: Arc<CompoundState>Implementations§
Source§impl JsCompoundState
impl JsCompoundState
pub fn component_count(&self) -> usize
pub fn get_component(&self, index: usize) -> Result<JsValue, String>
Trait Implementations§
Source§impl From<JsCompoundState> for JsValue
impl From<JsCompoundState> for JsValue
Source§fn from(value: JsCompoundState) -> Self
fn from(value: JsCompoundState) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for JsCompoundState
impl FromWasmAbi for JsCompoundState
Source§impl IntoWasmAbi for JsCompoundState
impl IntoWasmAbi for JsCompoundState
Source§impl LongRefFromWasmAbi for JsCompoundState
impl LongRefFromWasmAbi for JsCompoundState
Source§impl OptionFromWasmAbi for JsCompoundState
impl OptionFromWasmAbi for JsCompoundState
Source§impl OptionIntoWasmAbi for JsCompoundState
impl OptionIntoWasmAbi for JsCompoundState
Source§impl RefFromWasmAbi for JsCompoundState
impl RefFromWasmAbi for JsCompoundState
Source§type Anchor = RcRef<JsCompoundState>
type Anchor = RcRef<JsCompoundState>
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.Source§impl RefMutFromWasmAbi for JsCompoundState
impl RefMutFromWasmAbi for JsCompoundState
impl SupportsConstructor for JsCompoundState
impl SupportsInstanceProperty for JsCompoundState
impl SupportsStaticProperty for JsCompoundState
Source§impl TryFromJsValue for JsCompoundState
impl TryFromJsValue for JsCompoundState
Source§impl VectorFromWasmAbi for JsCompoundState
impl VectorFromWasmAbi for JsCompoundState
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[JsCompoundState]>
Source§impl VectorIntoWasmAbi for JsCompoundState
impl VectorIntoWasmAbi for JsCompoundState
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[JsCompoundState]>) -> Self::Abi
Source§impl WasmDescribeVector for JsCompoundState
impl WasmDescribeVector for JsCompoundState
Auto Trait Implementations§
impl !RefUnwindSafe for JsCompoundState
impl !UnwindSafe for JsCompoundState
impl Freeze for JsCompoundState
impl Send for JsCompoundState
impl Sync for JsCompoundState
impl Unpin for JsCompoundState
impl UnsafeUnpin for JsCompoundState
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.