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 d96906f commit 7a03b57Copy full SHA for 7a03b57
godot-core/src/builtin/string/gstring.rs
@@ -68,6 +68,14 @@ impl GString {
68
Self { opaque }
69
}
70
71
+ pub fn len(&self) -> usize {
72
+ self.as_inner().length().try_into().unwrap()
73
+ }
74
+
75
+ pub fn is_empty(&self) -> bool {
76
+ self.as_inner().is_empty()
77
78
79
/// Returns a 32-bit integer hash value representing the string.
80
pub fn hash(&self) -> u32 {
81
self.as_inner()
0 commit comments