summaryrefslogtreecommitdiff
path: root/rust/src/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/types.rs')
-rw-r--r--rust/src/types.rs9
1 files changed, 9 insertions, 0 deletions
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<BNOffsetWithConfidence> for Conf<i64> {
}
}
+impl From<Conf<Ref<Type>>> for BNTypeWithConfidence {
+ fn from(conf: Conf<Ref<Type>>) -> Self {
+ Self {
+ type_: conf.contents.handle,
+ confidence: conf.confidence,
+ }
+ }
+}
+
impl From<Conf<&Type>> for BNTypeWithConfidence {
fn from(conf: Conf<&Type>) -> Self {
Self {