pub struct WasmUtils;Expand description
WASM compilation utilities
Implementations§
Source§impl WasmUtils
impl WasmUtils
Sourcepub fn generate_wasm_signature(
function_name: &str,
parameters: &[WasmParameter],
return_type: WasmType,
) -> String
pub fn generate_wasm_signature( function_name: &str, parameters: &[WasmParameter], return_type: WasmType, ) -> String
Generate WASM-compatible function signature
Sourcepub fn generate_memory_helpers() -> String
pub fn generate_memory_helpers() -> String
Generate WASM memory management helpers
Sourcepub fn generate_ml_bindings() -> String
pub fn generate_ml_bindings() -> String
Generate WASM bindings for ML functions
Sourcepub fn create_wasm_build_config() -> WasmBuildConfig
pub fn create_wasm_build_config() -> WasmBuildConfig
Create build configuration for WASM
Sourcepub fn generate_package_json(project_name: &str, version: &str) -> String
pub fn generate_package_json(project_name: &str, version: &str) -> String
Generate package.json for WASM project
Auto Trait Implementations§
impl Freeze for WasmUtils
impl RefUnwindSafe for WasmUtils
impl Send for WasmUtils
impl Sync for WasmUtils
impl Unpin for WasmUtils
impl UnwindSafe for WasmUtils
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more