pub struct WasmNurbsSurface { /* private fields */ }Implementations§
Source§impl WasmNurbsSurface
impl WasmNurbsSurface
pub fn new(surface_json: &str) -> Result<WasmNurbsSurface, JsValue>
pub fn evaluate_many(&self, parameters_uv: &[f64]) -> Result<Vec<f64>, JsValue>
pub fn normals_many(&self, parameters_uv: &[f64]) -> Result<Vec<f64>, JsValue>
pub fn derivatives_flat( &self, u: f64, v: f64, derivative_count: usize, ) -> Result<Vec<f64>, JsValue>
Trait Implementations§
Source§impl From<WasmNurbsSurface> for JsValue
impl From<WasmNurbsSurface> for JsValue
Source§fn from(value: WasmNurbsSurface) -> Self
fn from(value: WasmNurbsSurface) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmNurbsSurface
impl FromWasmAbi for WasmNurbsSurface
Source§impl IntoWasmAbi for WasmNurbsSurface
impl IntoWasmAbi for WasmNurbsSurface
Source§impl LongRefFromWasmAbi for WasmNurbsSurface
impl LongRefFromWasmAbi for WasmNurbsSurface
Source§type Abi = WasmPtr<WasmRefCell<WasmNurbsSurface>>
type Abi = WasmPtr<WasmRefCell<WasmNurbsSurface>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WasmNurbsSurface>
type Anchor = RcRef<WasmNurbsSurface>
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 OptionFromWasmAbi for WasmNurbsSurface
impl OptionFromWasmAbi for WasmNurbsSurface
Source§impl OptionIntoWasmAbi for WasmNurbsSurface
impl OptionIntoWasmAbi for WasmNurbsSurface
Source§impl RefFromWasmAbi for WasmNurbsSurface
impl RefFromWasmAbi for WasmNurbsSurface
Source§type Abi = WasmPtr<WasmRefCell<WasmNurbsSurface>>
type Abi = WasmPtr<WasmRefCell<WasmNurbsSurface>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WasmNurbsSurface>
type Anchor = RcRef<WasmNurbsSurface>
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 WasmNurbsSurface
impl RefMutFromWasmAbi for WasmNurbsSurface
Source§type Abi = WasmPtr<WasmRefCell<WasmNurbsSurface>>
type Abi = WasmPtr<WasmRefCell<WasmNurbsSurface>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WasmNurbsSurface>
type Anchor = RcRefMut<WasmNurbsSurface>
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 WasmNurbsSurface
impl SupportsInstanceProperty for WasmNurbsSurface
impl SupportsStaticProperty for WasmNurbsSurface
Source§impl TryFromJsValue for WasmNurbsSurface
impl TryFromJsValue for WasmNurbsSurface
Source§impl VectorFromWasmAbi for WasmNurbsSurface
impl VectorFromWasmAbi for WasmNurbsSurface
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmNurbsSurface]>
Source§impl VectorIntoWasmAbi for WasmNurbsSurface
impl VectorIntoWasmAbi for WasmNurbsSurface
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmNurbsSurface]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmNurbsSurface
impl WasmDescribeVector for WasmNurbsSurface
Auto Trait Implementations§
impl !Freeze for WasmNurbsSurface
impl !RefUnwindSafe for WasmNurbsSurface
impl !Sync for WasmNurbsSurface
impl Send for WasmNurbsSurface
impl Unpin for WasmNurbsSurface
impl UnsafeUnpin for WasmNurbsSurface
impl UnwindSafe for WasmNurbsSurface
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.