From 091c247bec20259091564c49e5f91a928bf4814b Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Wed, 20 May 2020 22:02:31 -0400 Subject: [PATCH] Add InternedStr::is_empty --- src/intern.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intern.rs b/src/intern.rs index 51e2f80b..22a824b5 100644 --- a/src/intern.rs +++ b/src/intern.rs @@ -24,6 +24,9 @@ macro_rules! get_str { } impl InternedStr { + pub fn is_empty(self) -> bool { + self == *EMPTY_STRING + } pub fn resolve_and_clone(self) -> String { get_str!(self).to_string() }