From 41a2e8a8c02ce6c1461f405e151194bb4554d817 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 19 Sep 2026 16:08:35 +0000 Subject: instruction alias trait --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index a0c237b..856e9cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -237,6 +237,11 @@ pub trait Instruction { fn well_defined(&self) -> bool; } +pub trait InstructionAlias: 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 { -- cgit v1.1