pub struct WasmMaterialProbe(/* private fields */);Expand description
Opaque handle to a persistent uniaxial material probe (material_probe).
Material state persists across applyStrain calls; cancel between points
by simply not calling it again.
Implementations§
Trait Implementations§
Source§impl From<WasmMaterialProbe> for JsValue
impl From<WasmMaterialProbe> for JsValue
Source§fn from(value: WasmMaterialProbe) -> Self
fn from(value: WasmMaterialProbe) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmMaterialProbe
impl FromWasmAbi for WasmMaterialProbe
Source§impl IntoWasmAbi for WasmMaterialProbe
impl IntoWasmAbi for WasmMaterialProbe
Source§impl LongRefFromWasmAbi for WasmMaterialProbe
impl LongRefFromWasmAbi for WasmMaterialProbe
Source§type Abi = WasmPtr<WasmRefCell<WasmMaterialProbe>>
type Abi = WasmPtr<WasmRefCell<WasmMaterialProbe>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WasmMaterialProbe>
type Anchor = RcRef<WasmMaterialProbe>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for WasmMaterialProbe
impl RefFromWasmAbi for WasmMaterialProbe
Source§type Abi = WasmPtr<WasmRefCell<WasmMaterialProbe>>
type Abi = WasmPtr<WasmRefCell<WasmMaterialProbe>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WasmMaterialProbe>
type Anchor = RcRef<WasmMaterialProbe>
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 WasmMaterialProbe
impl RefMutFromWasmAbi for WasmMaterialProbe
Source§type Abi = WasmPtr<WasmRefCell<WasmMaterialProbe>>
type Abi = WasmPtr<WasmRefCell<WasmMaterialProbe>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WasmMaterialProbe>
type Anchor = RcRefMut<WasmMaterialProbe>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for WasmMaterialProbe
impl SupportsInstanceProperty for WasmMaterialProbe
impl SupportsStaticProperty for WasmMaterialProbe
Source§impl TryFromJsValue for WasmMaterialProbe
impl TryFromJsValue for WasmMaterialProbe
Source§impl VectorFromWasmAbi for WasmMaterialProbe
impl VectorFromWasmAbi for WasmMaterialProbe
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmMaterialProbe]>
Source§impl VectorIntoWasmAbi for WasmMaterialProbe
impl VectorIntoWasmAbi for WasmMaterialProbe
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmMaterialProbe]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmMaterialProbe
impl WasmDescribeVector for WasmMaterialProbe
Auto Trait Implementations§
impl !Freeze for WasmMaterialProbe
impl RefUnwindSafe for WasmMaterialProbe
impl Send for WasmMaterialProbe
impl Sync for WasmMaterialProbe
impl Unpin for WasmMaterialProbe
impl UnsafeUnpin for WasmMaterialProbe
impl UnwindSafe for WasmMaterialProbe
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<T, U> Imply<T> for U
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.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.