diff options
| author | iximeow <me@iximeow.net> | 2026-09-19 16:08:35 +0000 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2026-09-19 16:08:35 +0000 |
| commit | 41a2e8a8c02ce6c1461f405e151194bb4554d817 (patch) | |
| tree | 69d56785312caed614734479535cea7d3e3ea645 | |
| parent | 4b05ae977975edca88c4efbaa0df10330e2d7b7f (diff) | |
instruction alias trait
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -237,6 +237,11 @@ pub trait Instruction { fn well_defined(&self) -> bool; } +pub trait InstructionAlias<I: Instruction>: LengthedInstruction { + fn compute_alias(t: &I) -> Self; + fn dealias(&self) -> I; +} + #[allow(deprecated)] #[deprecated(since="0.3.0", note="ShowContextual ties YaxColors and fmt::Write in a way that only sometimes composes. simultaneously, it is too generic on Ctx, making it difficult to implement and use. it will be revisited in the future.")] pub trait ShowContextual<Addr, Ctx: ?Sized, T: fmt::Write, Y: YaxColors> { |
