diff options
| author | mmaekr <mjrinald@gmail.com> | 2023-04-25 23:19:23 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-05-10 17:45:16 -0400 |
| commit | 1f776b8b1e119d5b9eda0d51ae43b790375e7b91 (patch) | |
| tree | d504b57322d993e3a95fd69e81a897584db319d9 /rust/src/types.rs | |
| parent | ba7d675b2443da4a0bf18d7724e4d19705949a4c (diff) | |
added un/define_user_data_var functions
Diffstat (limited to 'rust/src/types.rs')
| -rw-r--r-- | rust/src/types.rs | 9 |
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 { |
