Skip to main content

Module emit_ctx

Module emit_ctx 

Source

Structs§

EmitCtx
Emission context carrying Rust-specific type/borrow policy.

Functions§

expr_can_move
Can this expression be moved (not cloned)? Checks last_use on Resolved nodes; Ident without local_types entry is treated as a global (always moveable).
expr_skip_clone
Should .clone() be skipped for this expression? True for: Copy types, last-use locals, globals/namespaces. False for: rc_wrapped, borrowed_params (need special clone paths).
is_copy_type
Is a Type Copy in Rust? (Int, Float, Bool, Unit)
should_borrow_param
Should this param be borrowed (&T) instead of owned?