pub struct TranslateOptions {
pub use_node_subcommand: bool,
pub add_unstable_flags: bool,
pub wrap_eval_code: bool,
}Expand description
Options for controlling translation behavior
Fields§
§use_node_subcommand: boolUse “deno node” as base command (for standalone CLI) When false, uses “deno run” (for child_process spawning)
add_unstable_flags: boolAdd unstable flags (–unstable-node-globals, etc.) Typically true for standalone CLI, false for child_process
wrap_eval_code: boolWrap eval code for Node.js compatibility (builtin modules as globals)
Implementations§
Source§impl TranslateOptions
impl TranslateOptions
Sourcepub fn for_node_cli() -> Self
pub fn for_node_cli() -> Self
Options for standalone node shim CLI
Sourcepub fn for_child_process() -> Self
pub fn for_child_process() -> Self
Options for child_process spawning within Deno
Trait Implementations§
Source§impl Clone for TranslateOptions
impl Clone for TranslateOptions
Source§fn clone(&self) -> TranslateOptions
fn clone(&self) -> TranslateOptions
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 TranslateOptions
impl Debug for TranslateOptions
Source§impl Default for TranslateOptions
impl Default for TranslateOptions
Source§fn default() -> TranslateOptions
fn default() -> TranslateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TranslateOptions
impl RefUnwindSafe for TranslateOptions
impl Send for TranslateOptions
impl Sync for TranslateOptions
impl Unpin for TranslateOptions
impl UnwindSafe for TranslateOptions
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