Add From str to IndexableValue
This commit is contained in:
parent
b4918e7312
commit
6937c76a86
@ -622,3 +622,9 @@ pub enum IndexableValue {
|
||||
RustFunction(String),
|
||||
Function(u32),
|
||||
}
|
||||
|
||||
impl From<&str> for IndexableValue {
|
||||
fn from(value: &str) -> Self {
|
||||
Value::from(value).as_indexable().unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user