Add From str to IndexableValue

This commit is contained in:
Sofia 2026-03-20 22:41:39 +02:00
parent b4918e7312
commit 6937c76a86

View File

@ -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()
}
}