We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Value::type_name
1 parent fa343c2 commit 4891b65Copy full SHA for 4891b65
src/value.rs
@@ -83,7 +83,7 @@ impl Value {
83
pub const NULL: Value = Value::LightUserData(LightUserData(ptr::null_mut()));
84
85
/// Returns type name of this value.
86
- pub const fn type_name(&self) -> &'static str {
+ pub fn type_name(&self) -> &'static str {
87
match *self {
88
Value::Nil => "nil",
89
Value::Boolean(_) => "boolean",
0 commit comments