From 1f776b8b1e119d5b9eda0d51ae43b790375e7b91 Mon Sep 17 00:00:00 2001 From: mmaekr Date: Tue, 25 Apr 2023 23:19:23 -0400 Subject: added un/define_user_data_var functions --- rust/src/types.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rust/src/types.rs') diff --git a/rust/src/types.rs b/rust/src/types.rs index 0e793cc2..c899b474 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -253,6 +253,15 @@ impl From for Conf { } } +impl From>> for BNTypeWithConfidence { + fn from(conf: Conf>) -> Self { + Self { + type_: conf.contents.handle, + confidence: conf.confidence, + } + } +} + impl From> for BNTypeWithConfidence { fn from(conf: Conf<&Type>) -> Self { Self { -- cgit v1.3.1