pub struct JsBackendConfig {
pub use_bigint_for_nat: bool,
pub strict_mode: bool,
pub include_runtime: bool,
pub emit_jsdoc: bool,
pub module_format: JsModuleFormat,
pub minify: bool,
}Expand description
Configuration for the JS backend.
Fields§
§use_bigint_for_nat: boolWhether to use BigInt for Nat (default: true).
strict_mode: boolWhether to emit strict mode ("use strict";).
include_runtime: boolWhether to include the runtime preamble.
emit_jsdoc: boolWhether to emit JSDoc comments for functions.
module_format: JsModuleFormatModule format: es (ES modules) or cjs (CommonJS).
minify: boolWhether to minify the output.
Trait Implementations§
Source§impl Clone for JsBackendConfig
impl Clone for JsBackendConfig
Source§fn clone(&self) -> JsBackendConfig
fn clone(&self) -> JsBackendConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsBackendConfig
impl Debug for JsBackendConfig
Source§impl Default for JsBackendConfig
impl Default for JsBackendConfig
Auto Trait Implementations§
impl Freeze for JsBackendConfig
impl RefUnwindSafe for JsBackendConfig
impl Send for JsBackendConfig
impl Sync for JsBackendConfig
impl Unpin for JsBackendConfig
impl UnsafeUnpin for JsBackendConfig
impl UnwindSafe for JsBackendConfig
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