Skip to content

[Rust] Should LowLevelIL{Instruction,Expression} be Copy (or at least Clone)? #6885

@bdash

Description

@bdash

It is currently not possible to copy or clone a LowLevelILInstruction or LowLevelILExpression. This can complicate working with them in some circumstances. The medium- and high-level equivalents are Clone.

Given they're a small struct holding only a reference to their containing LowLevelILFunction plus their instruction / expression index, copying is cheap enough that I could see these being Copy. The medium- / high-level equivalents are larger and so make sense as Clone.

Metadata

Metadata

Assignees

Labels

Component: Rust APIIssue needs changes to the Rust APIEffort: TrivialIssues require < 1 day of workImpact: MediumIssue is impactful with a bad, or no, workaround

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions