diff options
| author | Mason Reed <mason@vector35.com> | 2026-02-09 17:00:52 -0800 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-02-23 00:09:44 -0800 |
| commit | ddf9fb555f97a5a009d9c1ea2aa1a76e6435726e (patch) | |
| tree | 11dcd856f2772ef8947ff42e7ebc7577d33586b1 /rust | |
| parent | d64f392bc90d6057ef6df62229b0ef6d354a67a1 (diff) | |
[Rust] Impl `From<BnString>` for `QualifiedName`
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/src/qualified_name.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/src/qualified_name.rs b/rust/src/qualified_name.rs index 62da86b8..aed045a0 100644 --- a/rust/src/qualified_name.rs +++ b/rust/src/qualified_name.rs @@ -193,6 +193,15 @@ impl From<String> for QualifiedName { } } +impl From<BnString> for QualifiedName { + fn from(value: BnString) -> Self { + Self { + items: vec![value.to_string_lossy().to_string()], + separator: String::from("::"), + } + } +} + impl From<&str> for QualifiedName { fn from(value: &str) -> Self { Self::from(value.to_string()) |
