We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba42eb6 commit 6c286e4Copy full SHA for 6c286e4
src/lib.rs
@@ -48,6 +48,11 @@ impl ScriptExtension {
48
pub fn intersect(self, other: Self) -> Self {
49
self.inner_intersect(other)
50
}
51
+
52
+ /// Checks if the script extension is empty (unknown)
53
+ pub fn is_empty(self) -> bool {
54
+ self == ScriptExtension::Single(Script::Unknown)
55
+ }
56
57
58
impl From<char> for ScriptExtension {
0 commit comments