pub struct WasmSolidBuffer { /* private fields */ }Expand description
A solid encoded as one flat Float64Array plus a tiny JSON side channel
for face/edge names — the zero-JSON result path for topology-heavy ops.
Getters consume the buffers (each may be read once) to avoid double copies.
Implementations§
Source§impl WasmSolidBuffer
impl WasmSolidBuffer
pub fn take_data(&mut self) -> Vec<f64>
pub fn names_json(&self) -> String
Sourcepub fn metadata_json(&self) -> String
pub fn metadata_json(&self) -> String
Operation-specific extras (e.g. offset-shell face images); “{}” when the operation has none.
Trait Implementations§
Source§impl From<WasmSolidBuffer> for JsValue
impl From<WasmSolidBuffer> for JsValue
Source§fn from(value: WasmSolidBuffer) -> Self
fn from(value: WasmSolidBuffer) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmSolidBuffer
impl FromWasmAbi for WasmSolidBuffer
Source§impl IntoWasmAbi for WasmSolidBuffer
impl IntoWasmAbi for WasmSolidBuffer
Source§impl LongRefFromWasmAbi for WasmSolidBuffer
impl LongRefFromWasmAbi for WasmSolidBuffer
Source§type Abi = WasmPtr<WasmRefCell<WasmSolidBuffer>>
type Abi = WasmPtr<WasmRefCell<WasmSolidBuffer>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WasmSolidBuffer>
type Anchor = RcRef<WasmSolidBuffer>
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 WasmSolidBuffer
impl OptionFromWasmAbi for WasmSolidBuffer
Source§impl OptionIntoWasmAbi for WasmSolidBuffer
impl OptionIntoWasmAbi for WasmSolidBuffer
Source§impl RefFromWasmAbi for WasmSolidBuffer
impl RefFromWasmAbi for WasmSolidBuffer
Source§type Abi = WasmPtr<WasmRefCell<WasmSolidBuffer>>
type Abi = WasmPtr<WasmRefCell<WasmSolidBuffer>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WasmSolidBuffer>
type Anchor = RcRef<WasmSolidBuffer>
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 WasmSolidBuffer
impl RefMutFromWasmAbi for WasmSolidBuffer
Source§type Abi = WasmPtr<WasmRefCell<WasmSolidBuffer>>
type Abi = WasmPtr<WasmRefCell<WasmSolidBuffer>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WasmSolidBuffer>
type Anchor = RcRefMut<WasmSolidBuffer>
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 WasmSolidBuffer
impl SupportsInstanceProperty for WasmSolidBuffer
impl SupportsStaticProperty for WasmSolidBuffer
Source§impl TryFromJsValue for WasmSolidBuffer
impl TryFromJsValue for WasmSolidBuffer
Source§impl VectorFromWasmAbi for WasmSolidBuffer
impl VectorFromWasmAbi for WasmSolidBuffer
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmSolidBuffer]>
Source§impl VectorIntoWasmAbi for WasmSolidBuffer
impl VectorIntoWasmAbi for WasmSolidBuffer
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmSolidBuffer]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmSolidBuffer
impl WasmDescribeVector for WasmSolidBuffer
Auto Trait Implementations§
impl Freeze for WasmSolidBuffer
impl RefUnwindSafe for WasmSolidBuffer
impl Send for WasmSolidBuffer
impl Sync for WasmSolidBuffer
impl Unpin for WasmSolidBuffer
impl UnsafeUnpin for WasmSolidBuffer
impl UnwindSafe for WasmSolidBuffer
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.