summaryrefslogtreecommitdiff
path: root/rust/src/string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/string.rs')
-rw-r--r--rust/src/string.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/string.rs b/rust/src/string.rs
index 75942da9..96830ca5 100644
--- a/rust/src/string.rs
+++ b/rust/src/string.rs
@@ -94,6 +94,10 @@ impl BnString {
pub fn len(&self) -> usize {
self.as_ref().len()
}
+
+ pub fn is_empty(&self) -> bool {
+ self.as_ref().is_empty()
+ }
}
impl Drop for BnString {