adding moving to string

This commit is contained in:
Chris Cochrun 2024-11-19 15:25:47 -06:00
parent b01eda5e0e
commit 5d30ca51ed

View file

@ -100,6 +100,15 @@ impl From<&i64> for Value {
}
}
impl From<Value> for String {
fn from(value: Value) -> Self {
match value {
Value::String(str) => str,
_ => String::default(),
}
}
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct Symbol(pub String);